fix:修复测距页面标题展示问题

This commit is contained in:
2026-05-13 15:40:12 +08:00
parent c3570afeba
commit 6db2142cf6
2 changed files with 6 additions and 2 deletions

View File

@@ -295,8 +295,11 @@ onShow(async () => {
store.updateShotInfo(result.current?.indexMap?.[user.value.id] ?? 0, result.shootNumber);
}
} else {
// 测距阶段重置箭数,防止 ImmediateWatcher 读取 Pinia 保留的旧值
// 测距阶段重置箭数和提示文案,防止 ImmediateWatcher 读取 Pinia 保留的旧值
store.updateShotInfo(0, 0);
// 同步清空 Pinia tips 与本地 tips避免重新开赛时 HeaderProgress 展示上一场旧文案
store.updateTips("");
tips.value = "";
}
recoverData(result, {force: true});
}