!236 update src/views/system/user/DeptTree.vue 部门树节点过滤不生效

Merge pull request !236 from 岁月不经谈/N/A
This commit is contained in:
芋道源码 2023-09-09 01:47:40 +00:00 committed by Gitee
commit 944565a241
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -51,6 +51,11 @@ const handleNodeClick = async (row: { [key: string]: any }) => {
}
const emits = defineEmits(['node-click'])
/** 监听deptName */
watch(deptName, (val) => {
treeRef.value!.filter(val)
})
/** 初始化 */
onMounted(async () => {
await getTree()