Explorar el Código

超管登录问题调整

zhangjie hace 2 años
padre
commit
58daef0363
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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;