diff --git a/ruoyi-ui/src/views/system/dept/index.vue b/ruoyi-ui/src/views/system/dept/index.vue index d45682f..cac45cf 100644 --- a/ruoyi-ui/src/views/system/dept/index.vue +++ b/ruoyi-ui/src/views/system/dept/index.vue @@ -118,7 +118,7 @@ - + @@ -329,7 +329,12 @@ export default { this.open = true; this.title = "添加部门"; listDept(this.queryParams).then(response => { - this.deptOptions = this.handleTree(response.data, "deptId"); + this.deptOptions = []; + this.deptOptions.push({ + deptId: 0, + deptName:"顶级部门", + children: this.handleTree(response.data, "deptId") + }); }); }, /** 展开/折叠操作 */