重置成功后自动跳转打分列表并刷新页面

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
fish
2026-05-04 23:22:33 +08:00
parent fa5fa07ef6
commit a7e1c9f416

View File

@@ -46,6 +46,11 @@ async function handleReset() {
resetting.value = true
await resetAllData()
ElMessage.success('已清空所有行情数据')
if (route.path === '/scores') {
router.go(0)
} else {
router.push('/scores')
}
} catch {
// user cancelled
} finally {