fix 修复 编辑顶部部门控制台报错问题

This commit is contained in:
疯狂的狮子li 2023-03-27 11:53:34 +08:00
parent 223e73ac41
commit 1d88c54c08

View File

@ -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);
}
});