Parcourir la source

超管登录问题调整

zhangjie il y a 2 ans
Parent
commit
58daef0363
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      src/features/login/Login.vue

+ 5 - 1
src/features/login/Login.vue

@@ -58,7 +58,11 @@ async function login() {
     });
     console.log(res);
     store.setUserInfo(res.data);
-    void router.push("/project/projectManagement");
+    if (rootOrgId === "1") {
+      void router.push("/basic/rootOrg");
+    } else {
+      void router.push("/project/projectManagement");
+    }
   } catch (error) {
     console.log(error);
     errorInfo = (<any>error).response.data.desc;