- 新增 site_settings 单行表(迁移 v7),保存网站名称、Logo 图片地址与页脚版权文案 - 新增 GET /api/site(公开)与 PUT /api/site(仅管理员),空值回退前端默认展示 - 前端头部、登录注册页、浏览器标题与页脚接入站点信息,Pinia store 启动时加载 - 新增 /admin/site 后台管理页面,头像下拉仅管理员显示“后台管理”,路由加 requiresAdmin 守卫 - 补充站点接口、迁移与权限测试,重新生成 Swagger 文档
frontend
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VS Code + Vue (Official) (and disable Vetur).
Recommended Browser Setup
- Chromium-based browsers (Chrome, Edge, Brave, etc.):
- Firefox:
Type Support for .vue Imports in TS
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
Customize configuration
See Vite Configuration Reference.
Project Setup
npm install
Compile and Hot-Reload for Development
npm run dev
Type-Check, Compile and Minify for Production
npm run build