路由菜单点击两次,出现如下错误提示:
解决方式,在route.js中配置:
import Router from 'vue-router'
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
路由菜单点击两次,出现如下错误提示:
解决方式,在route.js中配置:
import Router from 'vue-router'
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}