feat(http): 实现基于alova的HTTP请求模块

添加HTTP请求核心模块,包括异常处理、状态码检查、消息提示等功能
- 新增alova实例配置,支持请求加密、token添加等特性
- 实现401状态码自动处理及登出逻辑
- 添加多种消息提示方式(message/modal/notification)
- 支持请求成功/失败的统一处理
- 添加WithMessage方法简化成功提示
- 更新相关依赖配置
This commit is contained in:
dap
2026-01-19 19:05:37 +08:00
parent c713828037
commit 8b0cf671b5
9 changed files with 639 additions and 3 deletions

View File

@@ -27,6 +27,7 @@
"#/*": "./src/*"
},
"dependencies": {
"@alova/adapter-axios": "^2.0.17",
"@ant-design/icons-vue": "^7.0.1",
"@tinymce/tinymce-vue": "^6.0.1",
"@vben/access": "workspace:*",
@@ -44,7 +45,9 @@
"@vben/types": "workspace:*",
"@vben/utils": "workspace:*",
"@vueuse/core": "catalog:",
"alova": "^3.4.1",
"antdv-next": "catalog:",
"axios": "catalog:",
"cropperjs": "^1.6.2",
"dayjs": "catalog:",
"echarts": "^5.5.1",