角色管理添加人员-按组织结构选人-搜索后无法点击选项

https://e.gitee.com/gdyditc/projects/725584/tasks/table?issue=IBPGJ9
This commit is contained in:
ZhangZhixing
2025-02-27 18:15:40 +08:00
parent 35a809e957
commit a51dfef6a0

View File

@ -85,9 +85,9 @@
let currentValue = toRaw(state.checkedKeys) as KeyType[]; let currentValue = toRaw(state.checkedKeys) as KeyType[];
if (isArray(currentValue) && searchState.startSearch) { if (isArray(currentValue) && searchState.startSearch) {
const { key } = unref(getFieldNames); const { key } = unref(getFieldNames);
currentValue = difference(currentValue, getChildrenKeys(e.node.$attrs.node[key])); currentValue = difference(currentValue, getChildrenKeys(e.node[key]));
if (e.checked) { if (e.checked) {
currentValue.push(e.node.$attrs.node[key]); currentValue.push(e.node[key]);
} }
state.checkedKeys = currentValue; state.checkedKeys = currentValue;
} else { } else {