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