在main.js里加上
const originalPush = Router.prototype.push;
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch((err) => err);
};
在main.js里加上
const originalPush = Router.prototype.push;
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch((err) => err);
};
本文标题:vue-router 报错:Navigation cancell
本文链接:https://www.haomeiwen.com/subject/tavoyktx.html
网友评论