fix(server): 赛事包导出传入项目名,修复 GET /api/export/project.zip 恒 500

This commit is contained in:
AskaEth committed 2026-09-09 19:57:23 +08:00
1 parent 72462792ec
commit 5ae55b8057
36 files changed
+2672 -108

No files matched your search

+3 -2
View File
@@ -5,6 +5,7 @@ import MxIcon from '../components/MxIcon.vue'
import PageHeader from '../components/PageHeader.vue'
import MockBadge from '../components/system/MockBadge.vue'
import JsonDiff from '../components/system/JsonDiff.vue'
import { describeError } from '../components/system/systemApi'
import { adminApi, mockMode } from '../api/client'
import { useAuthStore } from '../stores/auth'
import { useToastStore } from '../stores/toast'
@@ -90,8 +91,8 @@ async function load(): Promise<void> {
usingMock.value = mockMode.value
if (page.value > pageCount.value) page.value = 1
} catch (caught) {
loadError.value = caught instanceof Error ? caught.message : '加载审计日志失败'
toast.error('加载审计日志失败', caught instanceof Error ? caught.message : null)
loadError.value = describeError(caught)
toast.error('加载审计日志失败', describeError(caught))
} finally {
loading.value = false
}