소스 검색

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) {