|
@@ -26,7 +26,6 @@ service.interceptors.request.use(
|
|
const role = route.value.meta?.roles?.[0];
|
|
const role = route.value.meta?.roles?.[0];
|
|
if (role && authMap[role]) {
|
|
if (role && authMap[role]) {
|
|
request.headers["auth-id"] = authMap[role];
|
|
request.headers["auth-id"] = authMap[role];
|
|
- sessionStorage.setItem("auth-id", authMap[role]);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -99,6 +98,7 @@ service.interceptors.response.use(
|
|
removeToken("codeToken");
|
|
removeToken("codeToken");
|
|
removeToken("systemSet");
|
|
removeToken("systemSet");
|
|
removeToken("userid");
|
|
removeToken("userid");
|
|
|
|
+ removeToken("auth-id");
|
|
// store.dispatch('app/toggleOutflag', false)
|
|
// store.dispatch('app/toggleOutflag', false)
|
|
// await store.dispatch('user/resetToken')
|
|
// await store.dispatch('user/resetToken')
|
|
useUserStore().resetState();
|
|
useUserStore().resetState();
|