From e85eeb987f795d153ce06cacf598ab2cb1cb7114 Mon Sep 17 00:00:00 2001 From: zyronon Date: Wed, 9 Aug 2023 00:26:57 +0800 Subject: [PATCH] SAve --- package.json | 1 + src/App.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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('这一章节完了')