修复BUG
This commit is contained in:
@@ -16,6 +16,7 @@ import ShootProgress2 from "@/components/ShootProgress2.vue";
|
||||
import { getCurrentGameAPI } from "@/apis";
|
||||
import { isGameEnded } from "@/util";
|
||||
import { MESSAGETYPES, roundsName } from "@/constants";
|
||||
import audioManager from "@/audioManager";
|
||||
import useStore from "@/store";
|
||||
import { storeToRefs } from "pinia";
|
||||
const store = useStore();
|
||||
@@ -182,6 +183,7 @@ async function onReceiveMessage(messages = []) {
|
||||
const redPlayer = redTeam.value.find(
|
||||
(item) => item.id === currentShooterId.value
|
||||
);
|
||||
if (msg.userId === user.value.id) audioManager.play("轮到你了");
|
||||
const nextTips = redPlayer ? "请红队射箭" : "请蓝队射箭";
|
||||
if (nextTips !== tips.value) {
|
||||
tips.value = nextTips;
|
||||
|
||||
Reference in New Issue
Block a user