Merge branch 'dev-zhangzx/IBPGJ9' into 'dev'

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

See merge request itc-framework/ma/2024/front!40
This commit is contained in:
890147
2025-03-11 02:47:26 +00:00

View File

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