浏览代码

fix: 前端传参0问题

wuwenyi 4 天之前
父节点
当前提交
b5cad26b98
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/system/user/index.vue

+ 1 - 1
src/views/system/user/index.vue

@@ -413,7 +413,7 @@ function openWecomDialog() {
 }
 
 async function loadDeptChildren(node: any, resolve: any) {
-  const parentId = node.data?.id || 0
+  const parentId = node.data?.id
   try {
     const depts = await listSubDepartments(parentId)
     if (depts.length === 0) {