From 85faca3ad8bbee06c50a0e219017daf590dab1ad Mon Sep 17 00:00:00 2001 From: xingyu Date: Wed, 18 Oct 2023 21:11:23 +0800 Subject: [PATCH] fix: fix types --- src/components/Tree/src/BasicTree.vue | 2 +- src/layouts/default/feature/index.vue | 8 +++++--- src/views/system/role/RoleMenuModal.vue | 5 +++-- src/views/system/user/DeptTree.vue | 4 +++- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/components/Tree/src/BasicTree.vue b/src/components/Tree/src/BasicTree.vue index 3362c867..0b83a426 100644 --- a/src/components/Tree/src/BasicTree.vue +++ b/src/components/Tree/src/BasicTree.vue @@ -255,7 +255,7 @@ export default defineComponent({ }) onMounted(() => { - const level = Number.parseInt(props.defaultExpandLevel) + const level = Number.parseInt(props.defaultExpandLevel as string) if (level > 0) state.expandedKeys = filterByLevel(level) else if (props.defaultExpandAll) diff --git a/src/layouts/default/feature/index.vue b/src/layouts/default/feature/index.vue index 9aedecd0..21b84132 100644 --- a/src/layouts/default/feature/index.vue +++ b/src/layouts/default/feature/index.vue @@ -42,9 +42,11 @@ const getIsFixedSettingDrawer = computed(() => {