修复首页跳转到选课、就餐缴费相关逻辑的业务判断

This commit is contained in:
ywyonui 2025-08-11 10:30:23 +08:00
parent 57b8fc3e60
commit 259c50828a

View File

@ -85,7 +85,7 @@ import { useUserStore } from "@/store/modules/user";
import { useDataStore } from "@/store/modules/data";
import { hasPermission } from "@/utils/permission";
const { getCurXs } = useUserStore();
const { getCurXs, toHome } = useUserStore();
const { setData, getAppCode } = useDataStore();
//
@ -220,18 +220,21 @@ const menuItems = ref([
icon: "/static/base/home/file-text-line.png",
path: "/pages/base/gzs/xkXqk",
permissionKey: "school-xqkxk", //
type: 1,
},
{
title: "俱乐部选课",
icon: "/static/base/home/contacts-book-3-line.png",
path: "/pages/base/gzs/xkJlb",
permissionKey: "school-jlbxk", //
type: 2,
},
{
title: "就餐缴费",
icon: "/static/base/home/contacts-book-3-line.png",
path: "/pages/base/gzs/jc",
permissionKey: "school-jcjf",
type: 3,
},
]);
@ -274,9 +277,13 @@ const goToGlxs = () => {
//
function handleMenuClick(item: any) {
if (item.path) {
if (!item.type) {
uni.navigateTo({
url: item.path,
});
} else {
toHome(item.type);
}
}
}