把以下内容放在路由文件中
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
把以下内容放在路由文件中
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
本文标题:解决ElementUI导航栏中的vue-router在3.0版本
本文链接:https://www.haomeiwen.com/subject/dgiemxtx.html
网友评论