feat(dashboard): 新增比赛管理仪表盘功能

添加比赛管理仪表盘页面,包含比赛卡片列表、状态标签和新增功能
移除旧的mine页面和相关路由配置
强制设置i18n语言为中文并更新系统标题
更新VSCode设置中的typescript格式化工具
This commit is contained in:
2026-01-16 16:47:50 +08:00
parent 1e510efe8e
commit b7ec446f19
15 changed files with 280 additions and 90 deletions

View File

@ -1,12 +1,17 @@
import type { App } from 'vue'
import { createI18n } from 'vue-i18n'
import { localStg } from '@/utils/storage'
import messages from './locale'
const i18n = createI18n({
locale: localStg.get('lang') || 'zh-CN',
fallbackLocale: 'en',
// locale: localStg.get('lang') || 'zh-CN',
// fallbackLocale: 'en',
// messages,
// legacy: false,
locale: 'zh-CN', // 强制设为中文
fallbackLocale: 'zh-CN', // 回退语言也设为中文
allowComposition: true,
messages,
// 建议关闭旧版兼容模式,减少控制台警告
legacy: false,
})

View File

@ -1,6 +1,6 @@
const local: App.I18n.Schema = {
system: {
title: 'reader-star 管理系统',
title: '阅读比赛配置后台',
updateTitle: '系统版本更新通知',
updateContent: '检测到系统有新版本发布,是否立即刷新页面?',
updateConfirm: '立即刷新',