update
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script setup>
|
||||
import { ref, computed, watch, onMounted } from "vue"
|
||||
import { useRouter, useRoute } from 'vue-router'
|
||||
import faceFamily from "../assets/audio/faceFamily.mp3"
|
||||
import bgm from "../assets/audio/bgm.mp3"
|
||||
import backgroundVideo from "../assets/video/1_stab_chf3_rhea1.mp4"
|
||||
import MyPhoto from './MyPhoto.vue'
|
||||
import PhotoSquare from './PhotoSquare.vue'
|
||||
@@ -26,7 +26,7 @@ const lotteryType = ref("draw")
|
||||
// 初始化全局音频实例
|
||||
const initGlobalAudio = () => {
|
||||
if (!globalStore.globalAudio) {
|
||||
globalStore.globalAudio = new Audio(faceFamily);
|
||||
globalStore.globalAudio = new Audio(bgm);
|
||||
globalStore.globalAudio.loop = true; // 设置循环播放
|
||||
globalStore.globalAudio.preload = 'auto';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user