Yansen 2 years ago
parent
commit
c7ecb29de9
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/pages/pg1/video.vue

+ 4
- 0
src/pages/pg1/video.vue View File

21
 import { useModel } from "@zjxpcyc/vue-tiny-store";
21
 import { useModel } from "@zjxpcyc/vue-tiny-store";
22
 import GoBack from "@/components/GoBack.vue";
22
 import GoBack from "@/components/GoBack.vue";
23
 
23
 
24
+const { pause } = useModel('audio');
25
+
24
 const router = useRouter();
26
 const router = useRouter();
25
 const mediaRef = ref();
27
 const mediaRef = ref();
26
 const show = ref(false);
28
 const show = ref(false);
27
 const controls = ref();
29
 const controls = ref();
28
 
30
 
29
 onMounted(() => {
31
 onMounted(() => {
32
+  pause();
33
+
30
   // 自动播放
34
   // 自动播放
31
   try {
35
   try {
32
     const t = setTimeout(() => {
36
     const t = setTimeout(() => {