更新音频

This commit is contained in:
kron
2025-09-15 11:23:22 +08:00
parent 0a151de3c9
commit aa6bbf6fd6
4 changed files with 83 additions and 61 deletions

View File

@@ -5,6 +5,7 @@ import Avatar from "@/components/Avatar.vue";
import UserUpgrade from "@/components/UserUpgrade.vue";
import { getGameAPI } from "@/apis";
import { topThreeColors, getBattleResultTips } from "@/constants";
import audioManager from "@/audioManager";
import useStore from "@/store";
import { storeToRefs } from "pinia";
const store = useStore();
@@ -79,6 +80,7 @@ onLoad(async (options) => {
ifWin.value = battleInfo.mode === 1 && mine.team === battleInfo.winner;
}
}
audioManager.play(ifWin.value ? "胜利" : "失败");
});
const checkBowData = () => {