fix(server): 赛事包导出传入项目名,修复 GET /api/export/project.zip 恒 500
This commit is contained in:
1 parent
72462792ec
commit
5ae55b8057
36 files changed
+2672
-108
No files matched your search
+23
-17
@@ -2,7 +2,7 @@ import { createRouter, createWebHashHistory, type RouteRecordRaw } from 'vue-rou
|
||||
import AdminLayout from './layouts/AdminLayout.vue'
|
||||
|
||||
/**
|
||||
* 路由表。占位页统一走 PlaceholderPage,避免为每个未实现页面各写一个空组件。
|
||||
* 路由表。页面已全部落地,不再使用 PlaceholderPage。
|
||||
*/
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
@@ -31,20 +31,20 @@ const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: 'review',
|
||||
name: 'review',
|
||||
component: () => import('./pages/PlaceholderPage.vue'),
|
||||
meta: { title: '成绩审核', note: '草稿列表 → 对比 → 发布 / 退回' },
|
||||
component: () => import('./pages/ReviewPage.vue'),
|
||||
meta: { title: '成绩审核' },
|
||||
},
|
||||
{
|
||||
path: 'records',
|
||||
name: 'records',
|
||||
component: () => import('./pages/PlaceholderPage.vue'),
|
||||
meta: { title: '破纪录', note: '疑似破纪录列表 → 确认 → 加分' },
|
||||
component: () => import('./pages/RecordsPage.vue'),
|
||||
meta: { title: '破纪录' },
|
||||
},
|
||||
{
|
||||
path: 'adjustments',
|
||||
name: 'adjustments',
|
||||
component: () => import('./pages/PlaceholderPage.vue'),
|
||||
meta: { title: '积分调整', note: '人工加减分(必填理由),本期规则关闭' },
|
||||
component: () => import('./pages/AdjustmentsPage.vue'),
|
||||
meta: { title: '积分调整' },
|
||||
},
|
||||
{
|
||||
path: 'standings',
|
||||
@@ -61,32 +61,32 @@ const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: 'base-data',
|
||||
name: 'base-data',
|
||||
component: () => import('./pages/PlaceholderPage.vue'),
|
||||
meta: { title: '基础数据', note: '单位 / 大项 / 小项 / 积分模板 / 运动员 / 报名导入' },
|
||||
component: () => import('./pages/BaseDataPage.vue'),
|
||||
meta: { title: '基础数据' },
|
||||
},
|
||||
{
|
||||
path: 'export',
|
||||
name: 'export',
|
||||
component: () => import('./pages/PlaceholderPage.vue'),
|
||||
meta: { title: '导出', note: '积分榜 / 明细 / 成绩册 / 赛事项目包' },
|
||||
component: () => import('./pages/ExportPage.vue'),
|
||||
meta: { title: '导出' },
|
||||
},
|
||||
{
|
||||
path: 'history',
|
||||
name: 'history',
|
||||
component: () => import('./pages/PlaceholderPage.vue'),
|
||||
meta: { title: '变更历史', note: '仿 Git Graph 的操作图谱(只读)' },
|
||||
component: () => import('./pages/HistoryPage.vue'),
|
||||
meta: { title: '变更历史' },
|
||||
},
|
||||
{
|
||||
path: 'logs',
|
||||
name: 'logs',
|
||||
component: () => import('./pages/PlaceholderPage.vue'),
|
||||
meta: { title: '日志', note: '审计日志:谁在什么时候改了什么' },
|
||||
component: () => import('./pages/LogsPage.vue'),
|
||||
meta: { title: '日志' },
|
||||
},
|
||||
{
|
||||
path: 'system',
|
||||
name: 'system',
|
||||
component: () => import('./pages/PlaceholderPage.vue'),
|
||||
meta: { title: '系统', note: '用户管理 / 备份恢复 / 赛事信息' },
|
||||
component: () => import('./pages/SystemPage.vue'),
|
||||
meta: { title: '系统设置' },
|
||||
},
|
||||
{
|
||||
path: 'password',
|
||||
@@ -94,6 +94,12 @@ const routes: RouteRecordRaw[] = [
|
||||
component: () => import('./pages/ChangePasswordPage.vue'),
|
||||
meta: { title: '修改密码' },
|
||||
},
|
||||
{
|
||||
path: 'about',
|
||||
name: 'about',
|
||||
component: () => import('./pages/AboutPage.vue'),
|
||||
meta: { title: '关于' },
|
||||
},
|
||||
],
|
||||
},
|
||||
{ path: '/:pathMatch(.*)*', redirect: { name: 'dashboard' } },
|
||||
|
||||
Reference in new issue
Block a user