Files
thebet365/apps/admin/package.json
Mars 929352bc62 perf(admin): 优化管理端页面切换性能与包体积 (同步自 main)
- 阶段 A: 增加 KeepAlive 缓存高频列表页,改用 onActivated 进行后台静默刷新,优化 tab 切换与 HomeEntry 闪屏

- 阶段 B: beforeEach 守卫在 TTL 内走同步快速路径,api 请求拦截器缓存 token 避免重复解析 JWT

- 阶段 C: 引入 unplugin 插件启用 Element Plus 组件按需加载,清理 App.vue 中 960+ 行冗余暗色主题 CSS

- i18n 拆包: 将三语文案包提取为独立懒加载 chunks,主包体积从 209KB 减少至 99KB (降低 53%)
2026-06-18 15:32:16 +08:00

34 lines
982 B
JSON

{
"name": "@thebet365/admin",
"version": "1.0.0",
"private": true,
"description": "统一管理后台(平台管理员 + 代理,单入口登录)",
"type": "module",
"scripts": {
"dev": "vite --port 5174 --host",
"build": "vue-tsc -b && vite build",
"build:analyze": "vue-tsc -b && vite build --mode analyze && node scripts/report-chunk-sizes.mjs",
"build:report": "node scripts/report-chunk-sizes.mjs",
"preview": "vite preview"
},
"dependencies": {
"@thebet365/shared": "workspace:*",
"axios": "^1.7.9",
"echarts": "^6.1.0",
"element-plus": "^2.9.3",
"vue": "^3.5.13",
"vue-echarts": "^8.0.1",
"vue-i18n": "^11.1.1",
"vue-router": "^4.5.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.2.1",
"rollup-plugin-visualizer": "^7.0.1",
"typescript": "^5.7.3",
"unplugin-auto-import": "^21.0.0",
"unplugin-vue-components": "^32.1.0",
"vite": "^6.0.11",
"vue-tsc": "^2.2.0"
}
}