瀏覽代碼

首页释放声音

林旭祥 1 月之前
父節點
當前提交
1882adf8d9
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/views/home/index.vue

+ 5 - 1
src/views/home/index.vue

@@ -24,6 +24,7 @@
 </template>
 
 <script setup name="Home" lang="ts">
+import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech';
 const { proxy } = getCurrentInstance() as any;
 const router = useRouter();
 
@@ -93,7 +94,10 @@ const getJump = (url: string, name: string) => {
   }
 };
 
-onMounted(() => {});
+onMounted(() => {
+  //停止播报;
+  speckCancel();
+});
 </script>
 
 <style lang="scss" scoped>