空白问题在vue.config.js 中添加
接连两次访问了同一个路由地址问题:
在main.js中添加这个
然后加上
// 这个是为了避免一个报错
const originalPush = Router.prototype.push;
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
空白问题在vue.config.js 中添加
接连两次访问了同一个路由地址问题:
在main.js中添加这个
然后加上
// 这个是为了避免一个报错
const originalPush = Router.prototype.push;
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}