beforeRouteLeave(to,from,next){ //这里写关闭弹窗 // 这里跳转路由 MessageBox.close(); next() // next()别漏,不然不跳转 } 转载于:https://www.cnblogs.com/suanmei/p/9948564.html