默认选中第一条检测计划

This commit is contained in:
caozehui
2024-12-17 11:12:21 +08:00
parent a027dc75c3
commit 07d02307e2
6 changed files with 66 additions and 31 deletions

View File

@@ -62,18 +62,17 @@ const modeList = [
},
];
const handelOpen = async (item: any) => {
await authStore.setShowMenu();
modeStore.setCurrentMode(item.code); // 将模式code存入 store
await authStore.setShowMenu();
return;
if (isActive) {
router.push({ path: "/static" });
} else {
ElMessage({
message: "当前模式未配置",
type: "warning",
});
}
// if (isActive) {
// router.push({ path: "/static" });
// } else {
// ElMessage({
// message: "当前模式未配置",
// type: "warning",
// });
// }
};
const handleSelect = (key: string, keyPath: string[]) => {
console.log(key, keyPath);