我从Ionic 4迁移到Ionic 5,并注意到即使我使用showCloseButton:true设置ToastOptions属性,我的toastController也不显示“关闭”按钮。
我从Ionic 4迁移到Ionic 5,并注意到我的toastControllers没有显示“关闭”按钮,即使我使用showCloseButton设置ToastOptions属性:true
我固定了它,明确地添加了按钮数组,如下所示: