后端 FastAPI 六层结构(api/services/repositories/models/schemas/core), 统一响应信封、全局异常、日志脱敏;6 张表经 Alembic 迁移建库,SQL 留存 db/migration;登录鉴权含图形验证码(Redis GETDEL 防重放)、JWT、登录限流、 登出黑名单(TTL=令牌剩余有效期)、登录日志。 前端 Vue3 + TS + Element Plus 骨架,含登录页、路由守卫、请求封装与 Vite 代理。 工程配置:uv 锁定 Python 3.12、ruff 检查与格式化、editorconfig、gitattributes。 测试 184 项(单元 155 / 集成 29)全绿,浏览器端到端 8 项通过。 Co-Authored-By: Claude Code <noreply@anthropic.com>
13 lines
372 B
TypeScript
13 lines
372 B
TypeScript
import ElementPlus from 'element-plus'
|
|
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
|
import { createApp } from 'vue'
|
|
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import pinia from './store'
|
|
|
|
import 'element-plus/dist/index.css'
|
|
import './assets/styles/index.css'
|
|
|
|
createApp(App).use(pinia).use(router).use(ElementPlus, { locale: zhCn }).mount('#app')
|