mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-18 11:06:36 +08:00
commit:权限模块新增分配详情功能
commit:修改前端样式
This commit is contained in:
@@ -10,6 +10,16 @@ const router = new Router({
|
||||
routes: routers
|
||||
});
|
||||
|
||||
const originalPush = Router.prototype.push;
|
||||
Router.prototype.push = function push (location) {
|
||||
return originalPush.call(this, location).catch(e => {});
|
||||
}
|
||||
|
||||
const originalReplace = Router.prototype.replace;
|
||||
Router.prototype.replace = function push (location, onComplete, onAbort) {
|
||||
return originalReplace.call(this, location, onComplete, onAbort).catch(e => {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 路由跳转的时候判断token是否存在
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user