电量显示走接口请求

This commit is contained in:
kron
2025-10-29 17:26:27 +08:00
parent 7036135d9c
commit f5d5475ee4
11 changed files with 30 additions and 37 deletions

View File

@@ -22,7 +22,6 @@ const scores = ref([]);
const total = 12;
const currentRound = ref(0);
const practiseResult = ref({});
const power = ref(0);
const practiseId = ref("");
const showGuide = ref(false);
@@ -53,7 +52,6 @@ async function onReceiveMessage(messages = []) {
}, 3000);
}
}
power.value = msg.target.battery;
}
if (msg.constructor === MESSAGETYPES.ShootSyncMePracticeID) {
if (practiseId.value && practiseId.value === msg.practice.id) {
@@ -128,7 +126,7 @@ onBeforeUnmount(() => {
<text>还有两场坚持</text>
<text>就是胜利💪</text>
</BubbleTip>
<BowPower :power="power" />
<BowPower />
</view>
<BowTarget
:totalRound="start ? total / 4 : 0"