Commit d1a257a5 by cocomilk2012

update

parent a1463c7a
Showing with 1 additions and 2 deletions
...@@ -34,8 +34,7 @@ router.beforeEach((to, from, next) => { ...@@ -34,8 +34,7 @@ router.beforeEach((to, from, next) => {
const authcode = to.query.authcode; const authcode = to.query.authcode;
const params = { to, authcode } const params = { to, authcode }
store.dispatch('oidcCheckAccess', params).then(function (hasAccess) { store.dispatch('oidcCheckAccess', params).then(function (hasAccess) {
const hasToken = localStorage.getItem("token") ? true : false; if (hasAccess) {
if (hasAccess && hasToken) {
next(); next();
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment