fix -- bug

This commit is contained in:
yuping
2023-02-21 04:08:18 +08:00
parent a8bcb035d3
commit c46f409f64

View File

@@ -523,7 +523,13 @@ const closeDeleteChapter = () => {
};
//删除关卡
const deleteChapter = () => {
if (routerInfo.value.chapterList.length === 1) {
message.warning("至少保留一个关卡");
return
}
routerInfo.value.chapterList.splice(activeIndex.value, 1);
activeIndex.value = activeIndex.value-1;
deleteChapterModal.value = false;
};
const getDetail = async () => {