fix: type
parent
40694f3818
commit
4eeaa32b2c
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue