Ionic2 toast dismissOnPageChange在显示多个toast时不起作用

Ionic2 toast dismissOnPageChange在显示多个toast时不起作用,ionic2,Ionic2,我正在使用版本2.2.1中的Ionic和angularfire2进行登录。当用户/密码错误时,我会用以下参数显示祝酒词: this.toastCtrl.create({ dismissOnPageChange: true, cssClass: 'toast-error', message: 'Email or password is wrong', showCloseButton: true }).present(); 当然,用户可能不关闭toast,再次输入错

我正在使用版本2.2.1中的Ionic和angularfire2进行登录。当用户/密码错误时,我会用以下参数显示祝酒词:

this.toastCtrl.create({
    dismissOnPageChange: true,
    cssClass: 'toast-error',
    message: 'Email or password is wrong',
    showCloseButton: true
}).present();
当然,用户可能不关闭toast,再次输入错误的登录信息,也不关闭第二个toast,但随后成功登录。现在,页面更改后仍会显示toast(我通过
NavController.setRoot
更改页面),尽管我设置了
dismissOnPageChange:true
。我现在的问题是:在创建/演示另一个祝酒词之前,我应该检查祝酒词是否已经显示,还是应该为爱奥尼亚人打开一个bug