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