diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 10d3f8d..8f1c7be 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -238,7 +238,7 @@ function handleUpdate(row) { listDeptExcludeChild(row.deptId).then(response => { deptOptions.value = proxy.handleTree(response.data, "deptId"); if (deptOptions.value.length == 0) { - const noResultsOptions = { deptId: proxy.form.parentId, deptName: proxy.form.parentName, children: [] }; + const noResultsOptions = { deptId: form.value.parentId, deptName: form.value.parentName, children: [] }; deptOptions.value.push(noResultsOptions); } });