vben
ba2415c3b4
chore: Extract lint config
2023-04-04 16:55:34 +08:00
tttleon
c70cf3cace
fix 主动调用 axioscancelToken 的 cancel 取消请求时 无效的问题 ( #2586 )
...
cancelToken 如果被深拷贝,会导致最外层无法使用cancel方法来取消请求
2023-02-27 12:51:51 +08:00
mfish
ce030d2d1d
axiosRetry参数首字母小写 ( #2419 )
...
* feat(axiosSuccess): 操作成功后根据传入提示模式进行相应
* fix(axiosRetry): 解决get重试请求返回的headers造成无法成功请求的问题
* fix(axiosRetry): 参数首字母小写
2022-11-24 18:16:34 +08:00
mfish
43c8bf0d0b
解决get重试请求返回的headers造成无法成功请求的问题 ( #2416 )
...
* feat(axiosSuccess): 操作成功后根据传入提示模式进行相应
* fix(axiosRetry): 解决get重试请求返回的headers造成无法成功请求的问题
2022-11-24 06:45:28 +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
zuihou
419b7aea07
fix(axios): 请求异常时,无法正确执行 catch
2022-05-06 10:39:46 +08:00
Captain
136cbb1e3b
feat: add request retry ( #1553 )
2022-03-19 00:07:34 +08:00
Captain
a281631ae3
fix: The value of ignoreCancelToken is not available in headers ( #1506 )
2021-12-28 18:47:44 +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
vben
3fcfac1f37
wip: Upgrade ant-design-vue 3.0
2021-11-24 23:25:13 +08:00
zuihou
5225345496
fix: 全局日期格式化缺少秒(大多数场景日期格式都需要携带秒!)
2021-10-29 20:09:43 +08:00
vben
a248e20013
chore: fix type
2021-10-26 01:19:51 +08:00
miofly
5902886798
fix(type): 修复几个 ts 报错,和文件引用位置 ( #1283 )
...
* fix(type): 删除多余的类型定义
* fix(login): 删除登录时的 toRaw 包裹参数
* fix(type): 修复几个 ts 报错,和文件引用位置
2021-10-12 18:30:32 +08:00
erniu
935d4fc12d
feat(Upload): 兼容ant-design-vue的upload属性 ( #1247 )
...
1. 兼容`name`属性,用于自定义发到后台的文件参数名; 2. 兼容`filename`属性
Co-authored-by: erniu <joe.cheng237@gmail.com>
2021-10-05 22:53:21 +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
无木
3a5d1a5757
fix: refresh failed while token invalid
...
修复当token失效时,刷新页面可能出现异常的问题
fixed : #1101
2021-08-20 16:55:42 +08:00
CXM
72634ffe6e
fix: add axios error info from response ( #1083 )
...
* fix(type): fix ant-design-vue ->
* fix: add axios error info from response
2021-08-16 23:14:40 +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
vben
913c22c84f
feat(menu): the route is automatically mapped to the menu
2021-06-27 23:58:14 +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
c4b22a225d
fix(upload): make sure to carry custom parameters, fix #802
2021-06-23 22:37:30 +08:00
无木
ea6834aeec
feat: optimize error message for api failure
...
优化request并发请求失败时的错误提示(同种类型的失败只提示一个message)
2021-06-18 17:14:31 +08:00
Vben
0d0708409c
feat(project-setting): added sessionTimeoutProcessing project configuration item,fix #772
2021-06-17 23:39:55 +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
vben
834fa7eb9c
fix(axios): make sure that the parameter is an object before processing, fix #660
2021-05-27 23:58:21 +08:00
vben
5465f058ce
feat(user): add user login expiration example
2021-05-25 23:14:05 +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
Yirius
5724bc5b3b
perf: set header can use For Qs ( #562 )
...
set header can use For Qs
2021-05-05 21:19:12 +08:00
最后
e1b30a5075
fix: update Axios.ts ( #492 )
...
1. 应该使用传递进来的 请求头
2. 针对有数组类型的参数,应该用brackets 或者 repeat 。 最好将arrayFormat参数改成可以让使用者通过入参来改的。 参考: https://blog.csdn.net/pifutan/article/details/86320705
2021-04-17 22:30:53 +08:00
Vben
215d8bab38
refactor: refactor store
2021-04-10 21:41:22 +08:00
Vben
a98835e18b
chore: types
2021-03-26 22:22:58 +08:00
Vben
970d4049fd
chore: update deps
2021-03-09 23:01:32 +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