去除切换到临时接口功能
This commit is contained in:
@@ -84,7 +84,7 @@ export const httpFatch = (url, options = { method: 'get' }) => {
|
||||
return promise
|
||||
}
|
||||
if (err.message === 'socket hang up') {
|
||||
window.globalObj.apiSource = 'temp'
|
||||
// window.globalObj.apiSource = 'temp'
|
||||
return Promise.reject(new Error(requestMsg.unachievable))
|
||||
}
|
||||
if (err.code === 'ENOTFOUND') return Promise.reject(new Error(requestMsg.notConnectNetwork))
|
||||
|
||||
Reference in New Issue
Block a user