电量显示走接口请求
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user