Skip to content

Commit

Permalink
fix(app-console): fix route hook error;
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Dec 24, 2021
1 parent ca33e35 commit c638181
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/app-console/src/permission.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,14 @@ router.beforeEach(async(to, from, next) => {

// remove auth info if request from system client with auth info
if (query?.with_auth && query?.access_token && query?.expire) {
if (!hasToken) {
setToken(query.access_token, query.expire)
}
setToken(query.access_token, query.expire)
setSystemClientUrl(query?.$back_url)
const target = { ...to, query: {}}
next(target, { replace: true })
return
}

// remove $back_url in query
console.log(query, 'query')
if (query?.$back_url) {
setSystemClientUrl(query?.$back_url)
const target = { ...to, query: {}}
Expand Down

0 comments on commit c638181

Please sign in to comment.