处理无响应请求
This commit is contained in:
@@ -80,7 +80,11 @@ const request = async function (options, config = {}) {
|
||||
const parseResponse = function (response, url) {
|
||||
console.log('response', response)
|
||||
if (!response) {
|
||||
alertError("服务无响应")
|
||||
wx.redirectTo({
|
||||
url: '/pages/login/index',
|
||||
})
|
||||
wx.clearStorageSync()
|
||||
alertError("无响应,请重试")
|
||||
return
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user