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