人生啊人生 3 ヶ月 前
コミット
dec09e1934
1 ファイル変更2 行追加1 行削除
  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({