优化返回游戏的数据更新

This commit is contained in:
kron
2025-07-23 11:18:47 +08:00
parent b87ccbb7b0
commit be4619ee24
8 changed files with 94 additions and 31 deletions

View File

@@ -39,7 +39,7 @@ onMounted(async () => {
ifWin.value = battleInfo.mode === 1 && mine.team === battleInfo.winner;
}
timer.value = setTimeout(() => {
const lastLvl = uni.getStorageSync("lastest-lvl");
const lastLvl = uni.getStorageSync("latest-lvl");
if (parseInt(lastLvl) > user.value.lvl) {
latestLvl.value = parseInt(lastLvl);
}