电量显示走接口请求

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

@@ -21,7 +21,6 @@ const start = ref(false);
const scores = ref([]);
const total = 36;
const practiseResult = ref({});
const power = ref(0);
const practiseId = ref("");
const showGuide = ref(false);
@@ -47,7 +46,6 @@ async function onReceiveMessage(messages = []) {
}, 3000);
}
}
power.value = msg.target.battery;
}
if (msg.constructor === MESSAGETYPES.ShootSyncMePracticeID) {
if (practiseId.value && practiseId.value === msg.practice.id) {
@@ -115,7 +113,7 @@ onBeforeUnmount(() => {
<text>完成过半胜利</text>
<text>在望💪</text>
</BubbleTip>
<BowPower :power="power" />
<BowPower />
</view>
<BowTarget
:currentRound="scores.length"