去除切换到临时接口功能

This commit is contained in:
lyswhut
2019-08-22 23:57:10 +08:00
parent 1182a6eba4
commit bb40a8612a
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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))