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(() => {
diff --git a/src/views/system/role/RoleMenuModal.vue b/src/views/system/role/RoleMenuModal.vue
index 69c87147..7815a737 100644
--- a/src/views/system/role/RoleMenuModal.vue
+++ b/src/views/system/role/RoleMenuModal.vue
@@ -108,8 +108,9 @@ function menuCheck(checkedKeys: CheckKeys, event: CheckedEvent) {
v-model:checkedKeys="model[field]"
:tree-data="treeData"
:field-names="{ title: 'name', key: 'id' }"
-
- toolbar checkable search
+ toolbar
+ checkable
+ search
:show-strictly-button="false"
:selectable="false"
title="菜单分配"
diff --git a/src/views/system/user/DeptTree.vue b/src/views/system/user/DeptTree.vue
index 719bb9d2..8ed03c20 100644
--- a/src/views/system/user/DeptTree.vue
+++ b/src/views/system/user/DeptTree.vue
@@ -9,6 +9,7 @@ import { handleTree } from '@/utils/tree'
defineOptions({ name: 'SystemDeptTree' })
const emit = defineEmits(['select'])
+const treeRef = ref()
const treeData = ref([])
async function fetch() {
@@ -26,8 +27,9 @@ onMounted(() => {
-