From e6351750cf75dcc9d8dd159490f161778f9d64d2 Mon Sep 17 00:00:00 2001 From: fish Date: Sun, 10 May 2026 15:19:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=88=86=E5=88=97=E8=A1=A8=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=93=81=E7=A7=8D=E6=89=93=E5=88=86=EF=BC=8C=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E5=90=8C=E6=AD=A5=E6=95=B0=E6=8D=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- web/frontend/src/App.vue | 30 +- web/frontend/src/views/ScoresView.vue | 400 ++++++++++++++++++-------- 2 files changed, 279 insertions(+), 151 deletions(-) diff --git a/web/frontend/src/App.vue b/web/frontend/src/App.vue index 5081f4c..170a54b 100644 --- a/web/frontend/src/App.vue +++ b/web/frontend/src/App.vue @@ -6,7 +6,6 @@ import { useAuthStore } from '@/stores/auth' import { useThemeStore } from '@/stores/theme' import { useMobile } from '@/composables/useMobile' import { resetAllData } from '@/api/admin' -import { runBatch } from '@/api/run' const auth = useAuthStore() const theme = useThemeStore() @@ -16,7 +15,6 @@ const { isMobile } = useMobile() const drawerOpen = ref(false) const resetting = ref(false) -const syncing = ref(false) const showLayout = computed(() => route.meta.layout !== 'blank' && !!auth.token) @@ -60,22 +58,6 @@ async function handleReset() { } } -async function handleSync() { - syncing.value = true - try { - await runBatch() - ElMessage.success('同步完成') - if (route.path === '/scores') { - router.go(0) - } else { - router.push('/scores') - } - } catch { - ElMessage.error('同步失败') - } finally { - syncing.value = false - } -}