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(() => {