diff --git a/src/App.vue b/src/App.vue index d0c4db8d..9cc999cb 100644 --- a/src/App.vue +++ b/src/App.vue @@ -49,14 +49,6 @@ onMounted(() => { }) }) -useEventListener('keyup', (e: KeyboardEvent) => { - if (e.key === 'Escape') { - let lastItem = runtimeStore.modalList.pop() - lastItem && lastItem.close() - } -}) - - onMounted(() => { }) diff --git a/src/components/Modal/Modal.vue b/src/components/Modal/Modal.vue index 602eb0d5..5dd5cc4e 100644 --- a/src/components/Modal/Modal.vue +++ b/src/components/Modal/Modal.vue @@ -1,8 +1,8 @@ @@ -45,8 +54,8 @@ function changeIndex(i: number, dict: Dict) { 当前 {{ store.collect.name }} - {{ store.wrong.name }} - {{ store.simple.name }} + {{ store.simple.name }} + {{ store.wrong.name }} @@ -62,14 +71,18 @@ function changeIndex(i: number, dict: Dict) { 单词 文章 - {{ - store.collect.words.length - }}个单词 + + {{ store.collect.words.length }}个单词 {{ store.collect.articles.length }}篇文章 + + + + + @@ -98,6 +111,27 @@ function changeIndex(i: number, dict: Dict) { + + + + 总词数:{{ store.simple.words.length }} + + + 切换 + + + + + + + @@ -115,29 +149,11 @@ function changeIndex(i: number, dict: Dict) { - - - - 总词数:{{ store.simple.words.length }} - - - 切换 - - - - - - - diff --git a/src/components/Practice/Practice.vue b/src/components/Practice/Practice.vue index c109ef1d..9db0a05b 100644 --- a/src/components/Practice/Practice.vue +++ b/src/components/Practice/Practice.vue @@ -32,28 +32,6 @@ watch(practiceStore, () => { practiceStore.correctRate = 100 - Math.trunc(((practiceStore.wrongWordNumber) / (practiceStore.inputWordNumber)) * 100) }) -function write() { - // console.log('write') - settingStore.dictation = true - repeat() -} - -//TODO 需要判断是否已忽略 -function repeat() { - // console.log('repeat') - // getCurrentPractice() - emitter.emit(EventKey.resetWord) -} - -function next() { - // console.log('next') - store.currentDict.chapterIndex++ - // repeat() -} - -function restart() { - store.currentDict.chapterIndex = 0 -} function test() { MessageBox.confirm( @@ -75,12 +53,7 @@ function test() { - +