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 - } -}