diff --git a/src/permission.js b/src/permission.js index 2215e66..1b995fe 100644 --- a/src/permission.js +++ b/src/permission.js @@ -17,6 +17,8 @@ router.beforeEach(async (to, from, next) => { if (isEmpty(history.state.current)) { assign(history.state, { current: from.fullPath }) } + console.log(to) + if (getToken()) { // 判断用户是否处于登录状态 if (to.path === '/login') {