perf(菜单管理,部门管理): 编辑时父级菜单懒加载的修改

This commit is contained in:
sheng
2023-08-01 15:13:50 +08:00
parent c13a5f0dda
commit 98b81a789d
7 changed files with 55 additions and 9 deletions

View File

@@ -137,7 +137,7 @@ const handleLoadNode = (node: Node, resolve: Function) => {
const handleNodeClick = (record: TreeItemType, node: Node) => {
treeSelectDept.value = record;
treeSelectNode.value = node;
emit('treeClick', record.id);
emit('treeClick', record);
};
/**
@@ -198,6 +198,10 @@ const handleSort = async (type: string) => {
sortDisable.value = false;
}
};
defineExpose({
treeRef,
});
</script>
<style lang="scss" scoped>