From ea570f894e6e7865bcab2429e7144bebc47e4ded Mon Sep 17 00:00:00 2001 From: cc <94575594@qq.com> Date: Sat, 21 Mar 2026 16:38:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E8=AF=AD=E5=8F=A5=E9=9A=8F=E6=9C=BA=E5=A1=AB=E5=85=85=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Pronunciation.vue | 65 +++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) 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" > +