From 997187b1f69885fdd45e915d52822a30fdf6d938 Mon Sep 17 00:00:00 2001 From: zyronon Date: Sat, 26 Aug 2023 17:38:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Modal/Statistics.vue | 46 +++++-- src/components/Ring.vue | 17 ++- src/components/Side.vue | 12 +- src/components/Toolbar/Toolbar.vue | 12 +- src/components/Type.vue | 52 ++++---- src/stores/base.ts | 54 ++++++-- src/types.ts | 197 ++++++++++++++-------------- 7 files changed, 231 insertions(+), 159 deletions(-) diff --git a/src/components/Modal/Statistics.vue b/src/components/Modal/Statistics.vue index 9de790ff..79a02b78 100644 --- a/src/components/Modal/Statistics.vue +++ b/src/components/Modal/Statistics.vue @@ -8,24 +8,52 @@ import Fireworks from "@/components/Fireworks.vue"; import BaseButton from "@/components/BaseButton.vue"; const store = useBaseStore() + +function write() { + store.isDictation = true + repeat() +} + +//TODO 需要判断是否已忽略 +function repeat() { + store.currentDict.wordIndex = 0 + store.currentWrongDict.wordList = [] + store.statModalIsOpen = false +} + +function next() { + store.currentDict.chapterIndex++ + repeat() +}