修改升级和404判断处理

This commit is contained in:
2024-07-29 16:46:47 +08:00
parent 5b280a9e9d
commit 01e3d60b6c
2 changed files with 6 additions and 1 deletions

View File

@@ -95,6 +95,10 @@ const parseResponse = function (response, url) {
return { code: 403, message: "非法访问" }
}
if (statusCode === 404) {
wx.redirectTo({
url: '/pages/login/index',
})
wx.clearStorageSync()
return { code: 404, message: "服务故障" }
}
if (500 <= statusCode && statusCode < 600) {