Commit a1ce9eda by 岁月不经谈 Committed by Gitee

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

部门树节点过滤不生效

Signed-off-by: 岁月不经谈 <473831241@qq.com>
parent 881ec672
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment