Merge branch 'dev' of https://git.code.tencent.com/lian-cbtc/jl-client into dev
This commit is contained in:
commit
811e919236
@ -878,8 +878,12 @@ router.beforeEach((to, from, next) => {
|
||||
|
||||
// 兼容 vue-router在3.1.0版本以上的路由跳转使用的是 promise 的方式
|
||||
const originalPush = Router.prototype.push;
|
||||
const originalReplace = Router.prototype.replace;
|
||||
Router.prototype.push = function push(location) {
|
||||
return originalPush.call(this, location).catch(err => err);
|
||||
};
|
||||
Router.prototype.replace = function push(location) {
|
||||
return originalReplace.call(this, location).catch(err => err);
|
||||
};
|
||||
|
||||
export default router;
|
||||
|
Loading…
Reference in New Issue
Block a user