修正ts类型

This commit is contained in:
Zy
2026-05-13 15:28:25 +08:00
parent 1b738c0f4d
commit a1750bc67b
114 changed files with 2346 additions and 613 deletions

View File

@@ -161,15 +161,15 @@ const toggleDark = () => useToggle(isDark);
/** 菜单导航设置 */
watch(
() => navType,
navType,
(val: string) => {
if (val.value === NavTypeEnum.TOP) {
if (val === NavTypeEnum.TOP) {
appStore.toggleSideBarHide(true);
permissionStore.setSidebarRouters(permissionStore.defaultRoutes as any);
} else if (val.value === NavTypeEnum.LEFT) {
} else if (val === NavTypeEnum.LEFT) {
appStore.toggleSideBarHide(false);
permissionStore.setSidebarRouters(permissionStore.defaultRoutes as any);
} else if (val.value === NavTypeEnum.MIX) {
} else if (val === NavTypeEnum.MIX) {
appStore.toggleSideBarHide(false);
}
},