Commit Graph

64 Commits

Author SHA1 Message Date
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
Vben 11d3f395ca fix: ensure to request the interface correctly 2021-02-26 23:30:22 +08:00
Vben a821d9a3a2 perf: imporve axios logic 2021-02-26 22:45:53 +08:00
Vben c41fa75265 feat: axios supports form-data format requests 2021-02-24 20:45:53 +08:00
vben be3a3ed699 perf: remove useless code 2021-02-22 00:01:03 +08:00
vben da04913ef3 feat: added settingButtonPosition configuration close #275 2021-02-18 21:12:27 +08:00
vben 589409305f perf: adjust the return value of the interface to obtain user information in array format #259 2021-02-13 09:17:11 +08:00
vben 5810078bc7 wip: code adjustment and optimization 2021-02-10 00:53:47 +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 4ff1c408dc wip(form): perf form 2020-12-25 01:09:44 +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