fix: 判断405状态异常

This commit is contained in:
TsMask committed 2023-11-08 11:45:52 +08:00
1 parent 1bc9358d30
commit 98a445daae
1 file changed
+1 -1
+1 -1
View File
@@ -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,