添加游戏中途挂起,返回同步数据

This commit is contained in:
kron
2025-07-22 15:47:07 +08:00
parent e5a28fd4ac
commit eb1c2f7f41
6 changed files with 330 additions and 232 deletions

View File

@@ -30,7 +30,6 @@ const checkBowData = () => {
};
onMounted(async () => {
const battleInfo = uni.getStorageSync("last-battle");
console.log("----battleInfo", battleInfo);
data.value = battleInfo;
const mine = battleInfo.playerStats.find((p) => p.id === user.value.id);
rank.value =
@@ -144,7 +143,7 @@ onUnmounted(() => {
</block>
<view class="battle-e">
<image src="../static/row-yellow-bg.png" mode="widthFix" />
<Avatar v-if="data.mode === 1" :src="user.avatar" :size="40" />
<Avatar :src="user.avatar" :size="40" />
<text v-if="data.battleMode === 1">
经验 {{ totalPoints > 0 ? "+" + totalPoints : totalPoints }}
</text>