diff --git a/package.json b/package.json index 17bedcea..dac8343a 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "dev": "vite", "build": "vue-tsc && vite build", + "build2": "vite build", "preview": "vite preview" }, "dependencies": { diff --git a/src/App.vue b/src/App.vue index 27a1947b..5d72c4cd 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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('这一章节完了')