This commit is contained in:
zyronon
2023-08-09 00:26:57 +08:00
parent 6f4e37c937
commit e85eeb987f
2 changed files with 2 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"build2": "vite build",
"preview": "vite preview"
},
"dependencies": {

View File

@@ -59,7 +59,7 @@ onUnmounted(() => {
function next() {
if (store.wordIndex === store.chapter.length - 1) {
if (store.chapterIndex !== store.wordListSplit.length - 1) {
if (store.chapterIndex !== store.currentDict.chapterList.length - 1) {
store.currentDict.wordIndex = 0
store.currentDict.chapterIndex++
console.log('这一章节完了')