online开发,使用部门选择组件时,多个默认参数时,仍然有问题。点击“确认”按钮,没反应。 #4166

pull/216/head
zhangdaiscott 2022-11-01 16:34:28 +08:00
parent b19ddbd449
commit 5b4a37cf95
1 changed files with 2 additions and 1 deletions

View File

@ -89,7 +89,8 @@ export function useTreeBiz(treeRef, getList, props) {
if (info.checked) {
//update-begin-author:taoyan date:20220408 for: 单选模式下设定rowKey无法选中数据-
checkedKeys.value = [info.node.eventKey];
let temp = info.checkedNodes.find((n) => n.key === info.node.eventKey);
let rowKey = props.rowKey;
let temp = info.checkedNodes.find((n) => n[rowKey] === info.node.eventKey);
selectRows.value = [temp];
//update-end-author:taoyan date:20220408 for: 单选模式下设定rowKey无法选中数据-
} else {