优化返回游戏的数据更新
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user