This commit is contained in:
13684185576
2025-07-22 18:51:12 +08:00
parent a2b8cd74e9
commit 3c9d244817
4 changed files with 77 additions and 71 deletions

View File

@ -14,7 +14,6 @@ function redirectAuth() {
let token = location.hash.slice(20) || null;
if (token != null) {
debugger
token = token.replace(/\ +/g, "");
setItem("SSOTOKEN", token)
handleLogin({ token: token});
@ -27,7 +26,7 @@ const handleLogin = (e) => {
store.dispatch("user/oatuhLogin", e).then((res) => {
// 登录后操作
if (res.deptList.length === 1) {
window.location.hash = "/";
// window.location.hash = "/";
} else {
deptList.value = [...res.deptList];
loginDialog.value = true;