fix -- bug

This commit is contained in:
yuping
2023-02-21 04:13:36 +08:00
parent c46f409f64
commit c5cd70e400
2 changed files with 2 additions and 2 deletions

View File

@@ -528,7 +528,7 @@ const deleteChapter = () => {
return
}
routerInfo.value.chapterList.splice(activeIndex.value, 1);
activeIndex.value = activeIndex.value-1;
activeIndex.value && (activeIndex.value = activeIndex.value-1);
deleteChapterModal.value = false;
};