人生啊人生 3 сар өмнө
parent
commit
dec09e1934

+ 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({