Commit Graph

47 Commits

Author SHA1 Message Date
vben 4cddaee88a refactor: @vben/shared 2023-04-08 00:10:10 +08:00
coder_Q bc099041ce
style: optimize the way success hints are encoded in transformRespons… (#2411)
* style: optimize the way success hints are encoded in transformResponseHook #2410

* style: move to introduce location

Co-authored-by: 邱子建 <qiuzijian@qiuzijiandeMacBook-Air.local>
2022-11-24 06:44:53 +08:00
前端爱码士 9ba15705b5
fix: 统一errorMessageMode值为单引号 (#2343) 2022-11-10 11:58:14 +08:00
mfish 17d16ae545
feat(axiosSuccess): 操作成功后根据传入提示模式进行相应 (#2326) 2022-11-06 06:55:07 +08:00
Luke b1f78c6696
fix: 取消重复请求,错误处理 (#2184) 2022-10-16 14:22:59 +08:00
newplum 442bd440ba
fix(axios): 非GET请求时增加判断config.data是否为FormData (#2082) 2022-07-19 12:10:06 +08:00
Tianyuan Zhang c0e40fa01e
refactor: update class AxiosTransform (#2041)
rename transformRequestHook to transformResponseHook
2022-07-07 15:39:48 +08:00
Jim 19dc88b4e0
docs: 添加注释, 修复 (#1927)
* docs: 添加注释

* docs: 添加注释

* fix: 后台动态权限changePermissionCode加上await

* docs: 添加注释

* docs: 添加注释

* docs: 添加注释

* docs: 添加注释

* docs: 添加注释
2022-06-16 19:02:10 +08:00
Captain 136cbb1e3b
feat: add request retry (#1553) 2022-03-19 00:07:34 +08:00
sevth 4f35b95b6b
fix: Multiple calls to createAxios function transform parameters are overwritten by other calls (#1474) 2021-12-18 22:28:20 +08:00
miofly 5902886798
fix(type): 修复几个 ts 报错,和文件引用位置 (#1283)
* fix(type): 删除多余的类型定义

* fix(login): 删除登录时的 toRaw 包裹参数

* fix(type): 修复几个 ts 报错,和文件引用位置
2021-10-12 18:30:32 +08:00
无木 6544f84bc2 feat(demo): add token expired example
添加token超时例子
2021-09-14 22:11:21 +08:00
vben 996f2f3c22 chore: update deps 2021-09-09 22:59:10 +08:00
love-life 7df9b51344
fix: 修改axios 中 urlPrefix 字段不生效问题 (#1170)
* fix(样式污染): 会污染其他带有srcollbar的组件样式

* fix(axios): urlPrefix 字段传递不生问题效
2021-09-09 09:41:34 +08:00
vben 56a966cfbf chore: format code 2021-08-24 22:41:48 +08:00
无木 49f39de7b4 feat(axios): use `defHttp` like `axios`
当非GET请求并且同时存在data和params,不再忽略data。使defHttp的用法习惯接近axios原生配置

fixed: #850
2021-07-03 14:01:18 +08:00
无木 d509e897be fix(axios): option `withToken` not work 2021-06-30 01:07:27 +08:00
无木 c99cf5e53f feat(axios): add `withToken` option
添加withToken配置,用于控制request是否提交token
2021-06-29 17:31:30 +08:00
无木 61d4efd55a revert(axios): remove baseUrl config
无需 baseUrl 配置,已有apiUrl 替代
2021-06-26 12:14:06 +08:00
JinMao d5f9919b60 fix: fix defHttp baseUrl work 2021-06-26 04:47:17 +08:00
Vben b6d5b0796d feat(axios): added authenticationScheme configuration,fix #774 2021-06-17 23:25:31 +08:00
xlaoyu 49b66e83ac
refactor(axios): control the display of common errors in the request cycle (#758)
Co-authored-by: frankylli <frankylli@tencent.com>
2021-06-16 22:34:32 +08:00
Vben 50f94bfee4 chore(axios): remove useless code 2021-06-06 15:12:15 +08:00
无木 b69dcd79d7 fix(axios): transformRequestHook logic error 2021-06-04 14:18:22 +08:00
Netfan b218f10e25
fix(login): login page modal style fixed: #662 (#666)
* fix: catch axios error data on request

* fix(login): login page modal style fixed: #662
2021-05-28 00:07:28 +08:00
zuihou 56d8af147e feat(axios): Do you want to return the original response header? For example, use this property when you need to get the response header 2021-05-12 13:19:14 +08:00
Vben 215d8bab38 refactor: refactor store 2021-04-10 21:41:22 +08:00
Vben b7ce74abd6 refactor: refactor the project to solve the hot update problem caused by circular dependencies close #301 2021-03-08 21:19:09 +08:00
Vben 3b8ca420c7 feat: add dept management page 2021-03-01 22:54:21 +08:00
Vben a821d9a3a2 perf: imporve axios logic 2021-02-26 22:45:53 +08:00
vben be3a3ed699 perf: remove useless code 2021-02-22 00:01:03 +08:00
vben c9600208c5 fix(table): table setting error #174 #165 2021-01-11 21:30:43 +08:00
vben de5bf757f2 fix(form): formAction slot not work 2021-01-07 21:16:30 +08:00
vben ac1a369502 perf(form): improve the form function 2020-12-27 22:25:35 +08:00
vben f646e37754 feat: axios add joinTime field 2020-12-15 21:27:45 +08:00
vben 6b3195b4ca fix(comp): fix the memory overflow problem of component containing keywords 2020-12-12 00:32:21 +08:00
vben 4ce1d526c8 refactor(lock-page): refactor lock page 2020-12-09 22:11:34 +08:00
vben 962f90de44 feat: support vscode i18n-ally plugin 2020-12-01 23:51:39 +08:00
vben 73c8e0c158 perf: perf component 2020-11-26 21:19:39 +08:00
vben 19011296ed feat: multi-language support 2020-11-26 21:10:21 +08:00
vben ba068ba1df wip: refactor layout 2020-11-23 23:24:13 +08:00
vben 737b1b190c wip: multi-language support 2020-11-23 00:35:15 +08:00
vben 661db0c767 perf(upload): improve upload component 2020-11-15 13:22:34 +08:00
vben 34c09fcea8 fix: repair local development post request proxy to https error problem (#63) 2020-10-28 23:00:03 +08:00
vben 7101587b96 feat: add error handle 2020-10-18 21:55:21 +08:00
nebv e83cb06bb9 feat: projectSetting add closeMessageOnSwitch and removeAllHttpPending 2020-10-13 01:40:18 +08:00
陈文彬 2f6253cfb6 initial commit 2020-09-28 20:19:10 +08:00