mint UI中messagebox彈框問題

問題描述:當彈框顯示時點擊瀏覽器返回按鈕,頁面跳轉上一級頁面,但是彈框仍然顯示! 問題解決:在全局中導入messagBox對象: import { MessageBox } from ‘mint-ui’; 然後調用對象的close()方法: const router = new VueRouter({ routes }) router.afterEach(route => { MessageBox
相關文章
相關標籤/搜索