Commit c9a0773f by 展昭

tj

parent afc3d3a0
Showing with 3 additions and 12 deletions
......@@ -29,7 +29,6 @@ const router = new VueRouter({
})
//自动登录
function autoLogin(payload = { autoCode, redirectPath }) {
console.log('redirectPath=', payload.redirectPath);
store.dispatch("authenticateOidc", {
options: {
extraQueryParams: {
......@@ -60,7 +59,6 @@ router.beforeEach((to, from, next) => {
if (autoLoginParams) {
autoLogin(autoLoginParams);
} else {
console.log('eeee');
next();
}
})
......@@ -93,6 +91,9 @@ router.beforeEach((to, from, next) => {
store.dispatch("signOutOidc")
} else {
console.log('abc');
console.log('to=',to);
console.log('from=',from);
next()
}
}
......@@ -105,7 +106,6 @@ router.beforeEach((to, from, next) => {
autoLogin({ autoCode: authcode, redirectPath: toPath })
});
} else {
console.log('def');
next()
}
......
......@@ -38,19 +38,10 @@ async function getToken(access_token, appid) {
},
err => {
console.log("789err=", err);
this.$router.push({
name: "oidcCallback",
query: { err: err.response.data.error_description }
});
}
)
.catch(err => {
console.log("111err=", err);
this.$router.push({
name: "oidcCallback",
query: { err: err.response.data.error_description }
});
});
}
......
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