fix: type

pull/170/head^2
xingyu4j 2025-07-09 17:05:15 +08:00
parent 40694f3818
commit 4eeaa32b2c
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import type { Recordable } from '@vben/types'; import type { Recordable } from '@vben/types';
import type { SystemDeptApi } from '#/api/system/dept'; import type { SystemMenuApi } from '#/api/system/menu';
import type { SystemRoleApi } from '#/api/system/role'; import type { SystemRoleApi } from '#/api/system/role';
import { ref } from 'vue'; import { ref } from 'vue';
@ -21,7 +21,7 @@ import { useAssignMenuFormSchema } from '../data';
const emit = defineEmits(['success']); const emit = defineEmits(['success']);
const menuTree = ref<SystemDeptApi.Dept[]>([]); // const menuTree = ref<SystemMenuApi.Menu[]>([]); //
const menuLoading = ref(false); // const menuLoading = ref(false); //
const isAllSelected = ref(false); // const isAllSelected = ref(false); //
const isExpanded = ref(false); // const isExpanded = ref(false); //
@ -90,7 +90,7 @@ async function loadMenuTree() {
menuLoading.value = true; menuLoading.value = true;
try { try {
const data = await getMenuList(); const data = await getMenuList();
menuTree.value = handleTree(data) as SystemDeptApi.Dept[]; menuTree.value = handleTree(data) as SystemMenuApi.Menu[];
} finally { } finally {
menuLoading.value = false; menuLoading.value = false;
} }