-- fix bug

This commit is contained in:
yuping
2023-02-27 23:31:48 +08:00
parent c4f71e7521
commit 1b4a271eec

View File

@@ -475,7 +475,23 @@ const subdeleteAll = () => {
message.warning("请选择要删除的任务!");
return
}
dialog({
content: '确定要删除所选任务吗?',
ok: () => {
for (let i = 0; i < routerInfo.value.chapterList[activeIndex.value].draftTaskList.length; i++) {
const t = routerInfo.value.chapterList[activeIndex.value].draftTaskList[i]
if (t.checked) {
if (t.id) {
t.checked = false;
t.deleted = true;
} else {
routerInfo.value.chapterList[activeIndex.value].draftTaskList.splice(i, 1);
i--;
}
}
}
},
});
};
//全选任务或全不选任务