pull/2/head
xiaozhiyong 2 years ago
parent f9bf46aff8
commit c553e1b328
  1. 12
      src/permission.js

@ -16,11 +16,15 @@ router.beforeEach(async (to, from, next) => {
if (!token) { if (!token) {
let paramsTarget = obtainUrlPathParameterTarget(location.href) let paramsTarget = obtainUrlPathParameterTarget(location.href)
console.log('paramsTarget', paramsTarget)
sessionStorage.setItem('paramsTarget', JSON.stringify(paramsTarget)) sessionStorage.setItem('paramsTarget', JSON.stringify(paramsTarget))
store.login(paramsTarget).then(() => { store.login(paramsTarget).then(
next() () => {
}) next()
},
() => {
next()
}
)
return return
} }

Loading…
Cancel
Save