Files
screen/package.json
Joshi ab43fa2457 feat(auth): 实现自动登录功能并优化API请求配置
- 在App.vue中添加onMounted钩子自动执行autoLogin函数
- 新增auth.js工具模块实现自动登录逻辑
- 配置API请求优先从localStorage获取Token
- 添加对localStorage和Cookie中Token的兼容性处理
- 集成echarts-china-map依赖包
- 移除测试用硬编码Token和调试日志
- 统一API基础路径为/api
- 添加Docker部署配置文件和nginx反向代理设置
2026-06-11 14:32:28 +08:00

29 lines
597 B
JSON

{
"name": "screen-management",
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"@kjgl77/datav-vue3": "^1.0.0",
"axios": "^1.6.7",
"cors": "^2.8.6",
"echarts": "^5.6.0",
"echarts-china-map": "^1.0.4",
"element-plus": "^2.6.1",
"express": "^5.2.1",
"mysql2": "^3.22.3",
"vue": "^3.4.21",
"vue-router": "^4.3.0",
"vuex": "^4.1.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.4",
"sass": "^1.71.1",
"vite": "^5.1.6"
}
}