pull/2/head
xiaozhiyong 2 years ago
parent f9bf46aff8
commit c553e1b328
  1. 10
      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(() => {
store.login(paramsTarget).then(
() => {
next()
})
},
() => {
next()
}
)
return
}

Loading…
Cancel
Save