Skip to content

Commit 944565a

Browse files
YunaiVgitee-org
authored andcommitted
!236 update src/views/system/user/DeptTree.vue 部门树节点过滤不生效
Merge pull request !236 from 岁月不经谈/N/A
2 parents 881ec67 + a1ce9ed commit 944565a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/views/system/user/DeptTree.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ const handleNodeClick = async (row: { [key: string]: any }) => {
5151
}
5252
const emits = defineEmits(['node-click'])
5353
54+
/** 监听deptName */
55+
watch(deptName, (val) => {
56+
treeRef.value!.filter(val)
57+
})
58+
5459
/** 初始化 */
5560
onMounted(async () => {
5661
await getTree()

0 commit comments

Comments
 (0)