报错:
Avoided redundant navigation to current location:

Vue.use(VueRouter);后面加
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
报错:
Avoided redundant navigation to current location:
Vue.use(VueRouter);后面加
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
本文标题:vue路由重复问题
本文链接:https://www.haomeiwen.com/subject/pdwcpktx.html
网友评论