修复首页进入选课的问题
This commit is contained in:
parent
c6044754c4
commit
60c416c171
@ -92,7 +92,7 @@ const toggleSelection = (xkkc: any) => {
|
|||||||
|
|
||||||
if (maxNum <= hasNum) {
|
if (maxNum <= hasNum) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '该课程已满员',
|
title: '课程名额已经被抢光,是否重新选课',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
|
|||||||
@ -86,7 +86,7 @@ import { useDataStore } from "@/store/modules/data";
|
|||||||
import { hasPermission } from "@/utils/permission";
|
import { hasPermission } from "@/utils/permission";
|
||||||
|
|
||||||
const { getCurXs, toHome } = useUserStore();
|
const { getCurXs, toHome } = useUserStore();
|
||||||
const { setData, getAppCode } = useDataStore();
|
const { setData, getAppCode, setGlobal } = useDataStore();
|
||||||
|
|
||||||
// 刷新相关变量
|
// 刷新相关变量
|
||||||
const { getLastRefreshTime, getRefreshInterval, setLastRefreshTime, updateStudentInfo, updateStudentList } = useUserStore();
|
const { getLastRefreshTime, getRefreshInterval, setLastRefreshTime, updateStudentInfo, updateStudentList } = useUserStore();
|
||||||
@ -282,6 +282,7 @@ function handleMenuClick(item: any) {
|
|||||||
url: item.path,
|
url: item.path,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
setGlobal({ type: item.type });
|
||||||
toHome(item.type);
|
toHome(item.type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user