路由重复解决:
1 查看自己是因为什么跳转方法报错 push/replace/back/go...
2 router.js
下面的跳转方法根据自己错误的方法更改
const original = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return original.call(this, location).catch(err => err)
}
路由重复解决:
1 查看自己是因为什么跳转方法报错 push/replace/back/go...
2 router.js
下面的跳转方法根据自己错误的方法更改
const original = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return original.call(this, location).catch(err => err)
}