fix: 判断405状态异常
This commit is contained in:
1 parent
1bc9358d30
commit
98a445daae
1 file changed
+1
-1
@@ -325,7 +325,7 @@ function stateCode(res: Response) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
// 地址找不到
|
// 地址找不到
|
||||||
if (res.status === 404) {
|
if (res.status === 404 || res.status === 405) {
|
||||||
return {
|
return {
|
||||||
code: RESULT_CODE_ERROR,
|
code: RESULT_CODE_ERROR,
|
||||||
msg: RESULT_MSG_URL_NOTFOUND,
|
msg: RESULT_MSG_URL_NOTFOUND,
|
||||||
|
|||||||
Reference in new issue
Block a user