- 问题:
在登录页跳转至登录页产生的错误
- 解决
在路由页加以下代码
const routerPath = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
return routerPath.call(this, location).catch(e => e)
}
const routerPath = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
return routerPath.call(this, location).catch(e => e)
}