修复代理bug

This commit is contained in:
lyswhut
2019-09-16 00:24:30 +08:00
parent b9aedc9165
commit a16b825c3b
3 changed files with 6 additions and 8 deletions

View File

@@ -217,11 +217,9 @@ export const http_jsonp = (url, options, callback) => {
})
}
const getProxyInfo = () => {
return window.globalObj.proxy.enable
? `http://${window.globalObj.proxy.username}:${window.globalObj.proxy.password}@${window.globalObj.proxy.host}:${window.globalObj.proxy.port};`
: undefined
}
const getProxyInfo = () => window.globalObj.proxy.enable
? `http://${window.globalObj.proxy.username}:${window.globalObj.proxy.password}@${window.globalObj.proxy.host}:${window.globalObj.proxy.port};`
: undefined
const fatchData = (url, method, options, callback) => {
// console.log(url, options)