修改升级和404判断处理
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user