Commit 17046f5f authored by 李纪文's avatar 李纪文

fix: 设备选择器增加默认不选中设置

parent f61abb19
......@@ -199,7 +199,7 @@ const DeviceTree = (props) => {
const newData = pageIndex === 1 ? list : [...dataList, ...list]; // 非第一页时合并
// 是否需要默认选中
if (pageIndex === 1 && (!keepChecked || (keepChecked && !checkedKeys.length))) {
if (pageIndex === 1 && (keepChecked && !checkedKeys.length)) {
setCheckedKeys(newData.length > 0 ? [newData[0].code] : []);
onCheck?.(newData.length > 0 ? [newData[0]] : []);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment