解决ElementUI导航栏中的vue-router在3.0版本

2020-06-06  本文已影响0人  小宝儿_09f3

把以下内容放在路由文件中

const originalPush = VueRouter.prototype.push

VueRouter.prototype.push = function push(location) {

return originalPush.call(this, location).catch(err => err)

}

上一篇 下一篇

猜你喜欢

热点阅读