mirror of
https://github.com/zuiidea/antd-admin
synced 2026-11-03 16:46:12 +00:00
Merge branch 'master' into remote
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user