eslint fix

This commit is contained in:
zuiidea
2018-02-26 19:35:58 +08:00
parent 479fc647c3
commit f6e11bb464
18 changed files with 78 additions and 42 deletions
+3 -1
View File
@@ -20,7 +20,7 @@ const fetch = (options) => {
try {
let domin = ''
if (url.match(/[a-zA-z]+:\/\/[^/]*/)) {
domin = url.match(/[a-zA-z]+:\/\/[^/]*/)[0]
[domin] = url.match(/[a-zA-z]+:\/\/[^/]*/)
url = url.slice(domin.length)
}
const match = pathToRegexp.parse(url)
@@ -113,6 +113,8 @@ export default function request (options) {
statusCode = 600
msg = error.message || 'Network Error'
}
/* eslint-disable */
return Promise.reject({ success: false, statusCode, message: msg })
})
}