Merge branch 'master' into remote

This commit is contained in:
rengised
2017-07-05 15:08:43 +08:00
committed by GitHub
44 changed files with 386 additions and 69 deletions
+5
View File
@@ -89,6 +89,11 @@ export default function request (options) {
return fetch(options).then((response) => {
const { statusText, status } = response
let data = options.fetchType === 'YQL' ? response.data.query.results.json : response.data
if (data instanceof Array) {
data = {
list: data,
}
}
return Promise.resolve({
success: true,
message: statusText,