Skip to content

Commit

Permalink
🐛 修复特定条件下数据未即时刷新
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Sep 26, 2024
1 parent 525d775 commit f6dfdc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/User/Record.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ async function refreshRecord(): Promise<void> {
loadingTitle.value = "正在保存战绩数据";
await TSUserRecord.saveRecord(Number(user.value.gameUid), res);
await loadUid();
await loadRecord();
if (recordData.value === undefined) await loadRecord();
} else {
showSnackbar({ text: `[${res.retcode}] ${res.message}`, color: "error" });
Expand Down

0 comments on commit f6dfdc8

Please sign in to comment.