细节调整
This commit is contained in:
@@ -36,10 +36,12 @@ const onReady = async () => {
|
||||
async function onReceiveMessage(messages = []) {
|
||||
messages.forEach((msg) => {
|
||||
if (msg.constructor === MESSAGETYPES.ShootSyncMeArrowID) {
|
||||
scores.value.push(msg.target);
|
||||
currentRound.value += 1;
|
||||
if (currentRound.value === 4) {
|
||||
currentRound.value = 1;
|
||||
if (scores.value.length < total) {
|
||||
scores.value.push(msg.target);
|
||||
currentRound.value += 1;
|
||||
if (currentRound.value === 4) {
|
||||
currentRound.value = 1;
|
||||
}
|
||||
}
|
||||
power.value = msg.target.battery;
|
||||
}
|
||||
@@ -125,5 +127,4 @@ onUnmounted(() => {
|
||||
</Container>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
<style scoped></style>
|
||||
|
||||
Reference in New Issue
Block a user