fix bug
This commit is contained in:
@@ -46,7 +46,7 @@ async function onReceiveMessage(messages = []) {
|
|||||||
if (currentRound.value === 4) {
|
if (currentRound.value === 4) {
|
||||||
currentRound.value = 1;
|
currentRound.value = 1;
|
||||||
}
|
}
|
||||||
if (scores.value.length === total / 2) {
|
if (practiseId && scores.value.length === total / 2) {
|
||||||
showGuide.value = true;
|
showGuide.value = true;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
showGuide.value = false;
|
showGuide.value = false;
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ async function onReceiveMessage(messages = []) {
|
|||||||
if (msg.constructor === MESSAGETYPES.ShootSyncMeArrowID) {
|
if (msg.constructor === MESSAGETYPES.ShootSyncMeArrowID) {
|
||||||
if (scores.value.length < total) {
|
if (scores.value.length < total) {
|
||||||
scores.value.push(msg.target);
|
scores.value.push(msg.target);
|
||||||
if (scores.value.length === total / 2) {
|
if (practiseId && scores.value.length === total / 2) {
|
||||||
showGuide.value = true;
|
showGuide.value = true;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
showGuide.value = false;
|
showGuide.value = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user