修复首页进入选课的问题

This commit is contained in:
ywyonui 2025-08-20 10:36:48 +08:00
parent c6044754c4
commit 60c416c171
2 changed files with 3 additions and 2 deletions

View File

@ -92,7 +92,7 @@ const toggleSelection = (xkkc: any) => {
if (maxNum <= hasNum) {
uni.showToast({
title: '该课程已满员',
title: '课程名额已经被抢光,是否重新选课',
icon: 'none',
duration: 2000
});

View File

@ -86,7 +86,7 @@ import { useDataStore } from "@/store/modules/data";
import { hasPermission } from "@/utils/permission";
const { getCurXs, toHome } = useUserStore();
const { setData, getAppCode } = useDataStore();
const { setData, getAppCode, setGlobal } = useDataStore();
//
const { getLastRefreshTime, getRefreshInterval, setLastRefreshTime, updateStudentInfo, updateStudentList } = useUserStore();
@ -282,6 +282,7 @@ function handleMenuClick(item: any) {
url: item.path,
});
} else {
setGlobal({ type: item.type });
toHome(item.type);
}
}