diff --git a/src/permission.js b/src/permission.js index fd3b908..4d1412d 100644 --- a/src/permission.js +++ b/src/permission.js @@ -16,11 +16,15 @@ router.beforeEach(async (to, from, next) => { if (!token) { let paramsTarget = obtainUrlPathParameterTarget(location.href) - console.log('paramsTarget', paramsTarget) sessionStorage.setItem('paramsTarget', JSON.stringify(paramsTarget)) - store.login(paramsTarget).then(() => { - next() - }) + store.login(paramsTarget).then( + () => { + next() + }, + () => { + next() + } + ) return }