林旭祥 пре 1 месец
родитељ
комит
90a973ec74
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      src/views/train/index.vue

+ 6 - 0
src/views/train/index.vue

@@ -29,6 +29,7 @@
 </template>
 
 <script setup name="TrainIndex" lang="ts">
+import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech';
 import { Swiper, SwiperSlide } from 'swiper/vue';
 import { Grid } from 'swiper/modules';
 import 'swiper/css';
@@ -160,6 +161,11 @@ onBeforeMount(async () => {
   await getInitExam();
 });
 
+onMounted(() => {
+  //停止播报;
+  speckCancel();
+});
+
 onBeforeUnmount(() => {
   getClearTimer();
 });