diff --git a/src/views/SpellPractice.vue b/src/views/SpellPractice.vue index 7d0a662..0502ffb 100644 --- a/src/views/SpellPractice.vue +++ b/src/views/SpellPractice.vue @@ -33,6 +33,19 @@ const wordList = computed(() => { .filter((w) => w.length > 0); }); +// 示例单词列表 +const exampleWords = [ + "apple", "banana", "orange", "grape", "strawberry", + "computer", "program", "keyboard", "screen", "mouse", + "book", "paper", "pencil", "school", "student", + "house", "window", "door", "table", "chair" +]; + +// 加载示例单词 +const loadExampleWords = () => { + wordInput.value = exampleWords.join("\n"); +}; + // 发音配置 const selectedVoice = ref("4"); const repeatCount = ref(2); @@ -385,7 +398,16 @@ onUnmounted(() => {

单词列表

- {{ wordList.length }} 个单词 +
+ + {{ wordList.length }} 个单词 +