bug修复
This commit is contained in:
@@ -22,7 +22,7 @@ const { user } = storeToRefs(store);
|
||||
const gameType = ref(0);
|
||||
const teamSize = ref(0);
|
||||
const start = ref(false);
|
||||
const startCount = ref(false);
|
||||
const startCount = ref(true);
|
||||
const battleId = ref("");
|
||||
const currentRound = ref(1);
|
||||
const power = ref(0);
|
||||
@@ -117,7 +117,6 @@ async function onReceiveMessage(messages = []) {
|
||||
// 这里会掉多次;
|
||||
timerSeq.value += 1;
|
||||
battleId.value = msg.id;
|
||||
startCount.value = true;
|
||||
players.value = [
|
||||
...msg.groupUserStatus.redTeam,
|
||||
...msg.groupUserStatus.blueTeam,
|
||||
@@ -131,6 +130,7 @@ async function onReceiveMessage(messages = []) {
|
||||
if (msg.id !== battleId.value) return;
|
||||
if (msg.constructor === MESSAGETYPES.MeleeAllReady) {
|
||||
start.value = true;
|
||||
startCount.value = true;
|
||||
seq.value += 1;
|
||||
timerSeq.value = 0;
|
||||
tips.value = "请连续射出6支箭";
|
||||
|
||||
Reference in New Issue
Block a user