mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 21:36:44 +08:00
fix -- bug
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user