[baozhangchao] 3 yıl önce
ebeveyn
işleme
3b2355ba90
1 değiştirilmiş dosya ile 3 ekleme ve 4 silme
  1. 3
    4
      src/components/MusicOnce.vue

+ 3
- 4
src/components/MusicOnce.vue Dosyayı Görüntüle

@@ -3,10 +3,10 @@
3 3
 </template>
4 4
 
5 5
 <script setup>
6
-import { ref } from 'vue';
6
+import { ref } from 'vue'
7 7
 
8 8
 const props = defineProps({
9
-  src: String,
9
+  src: String
10 10
 })
11 11
 
12 12
 const audioRef = ref()
@@ -16,9 +16,8 @@ defineExpose({
16 16
     audioRef.value.currentTime = 0
17 17
     audioRef.value.play()
18 18
   },
19
-  pause: () => audioRef.value.pause(),
19
+  pause: () => audioRef.value.pause()
20 20
 })
21
-
22 21
 </script>
23 22
 
24 23
 <style lang="less" scoped>