feat: 新增测试页面并优化用户界面及API调用

- 新增测试页面 `/test`,用于展示题目答案的交互式网格和列表布局
- 为 CompetitionLayout 组件添加标题背景类型支持,优化视觉一致性
- 更新 `fetchUpdateCurrentQuestionUse` API 参数,简化调用逻辑
- 优化用户界面细节,包括图标替换、样式调整和布局改进
This commit is contained in:
2026-02-27 08:37:45 +08:00
parent f1ff053b68
commit e70409082a
16 changed files with 356 additions and 63 deletions

View File

@ -31,6 +31,7 @@ export const views: Record<LastLevelRouteKey, RouteComponent | (() => Promise<Ro
results: () => import("@/views/results/index.vue"),
"template_template-detail": () => import("@/views/template/template-detail/index.vue"),
"template_template-list": () => import("@/views/template/template-list/index.vue"),
test: () => import("@/views/test/index.vue"),
user_analysis: () => import("@/views/user/analysis/index.vue"),
user_cover: () => import("@/views/user/cover/index.vue"),
user_draw: () => import("@/views/user/draw/index.vue"),

View File

@ -223,6 +223,15 @@ export const generatedRoutes: GeneratedRoute[] = [
}
]
},
{
name: 'test',
path: '/test',
component: 'layout.base$view.test',
meta: {
title: 'test',
i18nKey: 'route.test'
}
},
{
name: 'user',
path: '/user',

View File

@ -182,6 +182,7 @@ const routeMap: RouteMap = {
"template": "/template",
"template_template-detail": "/template/template-detail",
"template_template-list": "/template/template-list",
"test": "/test",
"user": "/user",
"user_analysis": "/user/analysis",
"user_cover": "/user/cover",