Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Baoyx007 authored Nov 23, 2017
1 parent d7cf969 commit a5317d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ router.beforeEach((to, from, next) => {
Util.title(to.meta.title);
if (Cookies.get('locking') === '1' && to.name !== 'locking') { // 判断当前是否是锁定状态
next({
replace: true
replace: true,
name: 'locking'
});
} else if (Cookies.get('locking') === '0' && to.name === 'locking') {
Expand All @@ -41,7 +41,7 @@ router.beforeEach((to, from, next) => {
Util.toDefaultPage([otherRouter, ...appRouter], to.name, router, next); // 如果在地址栏输入的是一级菜单则默认打开其第一个二级菜单的页面
} else {
next({
replace: true
replace: true,
name: 'error_403'
});
}
Expand Down

0 comments on commit a5317d3

Please sign in to comment.