diff --git a/src/views/Pronunciation.vue b/src/views/Pronunciation.vue index 8902a89..f5bd62f 100644 --- a/src/views/Pronunciation.vue +++ b/src/views/Pronunciation.vue @@ -9,6 +9,21 @@ const selectedVoice = ref("1"); const activeCategory = ref("all"); const isGenerating = ref(false); +// 示例语句列表 +const exampleSentences = [ + "Hello, how are you today?", + "The weather is beautiful today.", + "Practice makes perfect.", + "Where there is a will, there is a way.", + "Knowledge is power.", +]; + +// 添加示例语句到文本框 +const addExampleSentence = () => { + const randomIndex = Math.floor(Math.random() * exampleSentences.length); + textInput.value = exampleSentences[randomIndex]; +}; + // 兼容不支持 crypto.randomUUID 的浏览器 const generateUUID = () => { if (typeof crypto.randomUUID === 'function') { @@ -802,6 +817,25 @@ onUnmounted(() => { maxlength="500" > +