Commit c9a0773f by 展昭

tj

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