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