mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 00:26:33 +08:00
fix: 204无内容直接返回判断 (#539)
This commit is contained in:
parent
4555545562
commit
83939b7517
|
@ -23,7 +23,7 @@ const transform: AxiosTransform = {
|
||||||
|
|
||||||
// 如果204无内容直接返回
|
// 如果204无内容直接返回
|
||||||
const method = res.config.method?.toLowerCase();
|
const method = res.config.method?.toLowerCase();
|
||||||
if (res.status === 204 || method === 'put' || method === 'patch') {
|
if (res.status === 204 && ['put', 'patch', 'delete'].includes(method)) {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user