bug修复
This commit is contained in:
@@ -39,7 +39,7 @@ const playersSorted = ref([]);
|
||||
const currentRound = ref(1);
|
||||
const totalRounds = ref(0);
|
||||
const start = ref(false);
|
||||
const startCount = ref(false);
|
||||
const startCount = ref(true);
|
||||
const power = ref(0);
|
||||
const scores = ref([]);
|
||||
const blueScores = ref([]);
|
||||
@@ -75,7 +75,7 @@ watch(
|
||||
onLoad(async (options) => {
|
||||
if (options.battleId) {
|
||||
const battleInfo = uni.getStorageSync("current-battle");
|
||||
// console.log("----battleInfo", battleInfo);
|
||||
console.log("----battleInfo", battleInfo);
|
||||
if (battleInfo) {
|
||||
battleId.value = battleInfo.id;
|
||||
battleType.value = battleInfo.config.mode;
|
||||
@@ -245,7 +245,6 @@ async function onReceiveMessage(messages = []) {
|
||||
// 这里会掉多次;
|
||||
timerSeq.value += 1;
|
||||
battleId.value = msg.id;
|
||||
startCount.value = true;
|
||||
step.value = 2;
|
||||
if (battleType.value === 1) {
|
||||
redTeam.value = msg.groupUserStatus.redTeam;
|
||||
@@ -336,6 +335,7 @@ async function onReceiveMessage(messages = []) {
|
||||
}
|
||||
if (msg.constructor === MESSAGETYPES.MeleeAllReady) {
|
||||
start.value = true;
|
||||
startCount.value = true;
|
||||
step.value = 3;
|
||||
seq.value += 1;
|
||||
timerSeq.value = 0;
|
||||
|
||||
Reference in New Issue
Block a user