fixed an issue where item opening information would also be copied when copying a item.

This commit is contained in:
unknown 2024-04-10 21:04:02 +08:00
parent fb0ce7d3ca
commit 37a62c1cb5

View File

@ -210,7 +210,7 @@ function copy(idList: Array<number>, toClassificationId: number) {
let itemList = selectByIdList(false, idList); let itemList = selectByIdList(false, idList);
if (itemList.length > 0) { if (itemList.length > 0) {
// 清空打开信息 // 清空打开信息
resultList.forEach((item) => clearOpenInfo(item)); itemList.forEach((item) => clearOpenInfo(item));
// 批量添加 // 批量添加
resultList = batchAdd(toClassificationId, itemList); resultList = batchAdd(toClassificationId, itemList);
} }