From 82283e207b7981efe5bcb4fb358c9fb2a5a943cf Mon Sep 17 00:00:00 2001 From: zyronon Date: Fri, 24 May 2024 15:55:07 +0800 Subject: [PATCH] save --- components.d.ts | 2 + src/pages/pc/dict2/index.vue | 2 - src/pages/pc/home/HomeIndex.vue | 6 +- src/pages/pc/word/EditWordDict.vue | 284 ++++++++++++++++++++++++++++- src/pages/pc/word/WordHome.vue | 2 +- src/stores/base.ts | 60 +++++- 6 files changed, 344 insertions(+), 12 deletions(-) diff --git a/components.d.ts b/components.d.ts index e1b06d51..9f29831d 100644 --- a/components.d.ts +++ b/components.d.ts @@ -26,6 +26,8 @@ declare module 'vue' { ElSelect: typeof import('element-plus/es')['ElSelect'] ElSlider: typeof import('element-plus/es')['ElSlider'] ElSwitch: typeof import('element-plus/es')['ElSwitch'] + ElTable: typeof import('element-plus/es')['ElTable'] + ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] Empty: typeof import('./src/components/Empty.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] diff --git a/src/pages/pc/dict2/index.vue b/src/pages/pc/dict2/index.vue index 08c4566c..cc6cfb91 100644 --- a/src/pages/pc/dict2/index.vue +++ b/src/pages/pc/dict2/index.vue @@ -1,8 +1,6 @@ diff --git a/src/pages/pc/word/WordHome.vue b/src/pages/pc/word/WordHome.vue index eae1d3e3..fe4ffb9a 100644 --- a/src/pages/pc/word/WordHome.vue +++ b/src/pages/pc/word/WordHome.vue @@ -30,7 +30,7 @@ function clickEvent(e) {
{{ base.collectWord.length }}个词
- 生词本 + 错词本
{{ base.wrong2.length }}个词
diff --git a/src/stores/base.ts b/src/stores/base.ts index 2a8c2ac2..9a06ec81 100644 --- a/src/stores/base.ts +++ b/src/stores/base.ts @@ -38,7 +38,65 @@ export interface BaseState { } export const DefaultBaseState = (): BaseState => ({ - collectWord: [], + collectWord: [ + { + "word": "pharmacy", + "trans": [ + { + "cn": "n.药房,配药学,药学,制药业,一批备用药品" + } + ], + "phonetic0": "ˈfɑ:məsi", + "phonetic1": "ˈfɑ:rməsi" + }, + { + "word": "foregone", + "trans": [ + { + "cn": "过去的;先前的;预知的;预先决定的" + }, + { + "cn": "发生在…之前(forego的过去分词)" + } + ], + "phonetic0": "fɔː'gɒn", + "phonetic1": "'fɔrɡɔn" + }, + + { + "word": "calculate", + "trans": [ + { + "cn": "vt.& vi.计算,估计,打算,计划,旨在" + }, + { + "cn": "vt.预测,推测" + } + ], + "phonetic0": "ˈkælkjuleɪt", + "phonetic1": "ˈkælkjəˌlet" + }, + { + "word": "compete", + "trans": [ + { + "cn": "vi.竞赛,竞争,比得上,参加比赛(或竞赛)" + } + ], + "phonetic0": "kəmˈpi:t", + "phonetic1": "kəmˈpit" + }, + { + "word": "furnish", + "trans": [ + { + "cn": "vt.陈设,布置,提供,供应,装修(房屋)" + } + ], + "phonetic0": "ˈfɜ:nɪʃ", + "phonetic1": "ˈfɜ:rnɪʃ" + }, + ], collectArticle: [], simple2: [], wrong2: [],