|
@@ -64,10 +64,11 @@ function handleNodeClick(data: { [key: string]: any }) {
|
|
|
|
|
|
onBeforeMount?.(() => {
|
|
|
treeList().then((response) => {
|
|
|
- if (response.data) {
|
|
|
- deptId.value = response.data[0].id;
|
|
|
- emits("node-click");
|
|
|
- }
|
|
|
+ // lupeng说默认不让传
|
|
|
+ // if (response.data) {
|
|
|
+ // deptId.value = response.data[0].id;
|
|
|
+ // emits("node-click");
|
|
|
+ // }
|
|
|
deptList.value = response.data;
|
|
|
});
|
|
|
});
|