人生啊人生 před 3 měsíci
rodič
revize
dec09e1934
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      user_web/src/view/LogIn.vue

+ 2 - 1
user_web/src/view/LogIn.vue

@@ -115,7 +115,8 @@ const onSubmit = (formEl: InstanceType<typeof ElForm> | undefined) => {
                     const userType = res.data.data.userType;
                     getCurrentUser().then((res) => {
                         userInfo.dataFill(Object.assign({ userType: userType }, res.data.data));
-                        if (userType == 0) router.push({ path: '/train' });
+                        // if (userType == 0) router.push({ path: '/train' });
+                        if (userType == 0) router.push({ path: '/studentMain' });
                         else if (userType == 1) router.push({ path: '/TaskMng' });
                         else {
                             ElNotification({