feat(auth): 实现自动登录功能并优化API请求配置
- 在App.vue中添加onMounted钩子自动执行autoLogin函数 - 新增auth.js工具模块实现自动登录逻辑 - 配置API请求优先从localStorage获取Token - 添加对localStorage和Cookie中Token的兼容性处理 - 集成echarts-china-map依赖包 - 移除测试用硬编码Token和调试日志 - 统一API基础路径为/api - 添加Docker部署配置文件和nginx反向代理设置
This commit is contained in:
11
.dockerignore
Normal file
11
.dockerignore
Normal file
@@ -0,0 +1,11 @@
|
||||
node_modules
|
||||
.git
|
||||
.gitignore
|
||||
.idea
|
||||
*.md
|
||||
deploy.sh
|
||||
.env
|
||||
src
|
||||
public
|
||||
scripts
|
||||
node_modules
|
||||
Reference in New Issue
Block a user