mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-28 11:24:50 +00:00
fix dataTable other fetch params
This commit is contained in:
@@ -7,11 +7,12 @@ export default function request (url, options) {
|
||||
format: 'json',
|
||||
})
|
||||
}
|
||||
const { method = 'get' } = options
|
||||
return Ajax.ajax({
|
||||
url,
|
||||
method: options.method || 'get',
|
||||
method,
|
||||
data: options.data || {},
|
||||
processData: options.method === 'get',
|
||||
processData: method === 'get',
|
||||
dataType: 'JSON',
|
||||
}).done((data) => {
|
||||
return data
|
||||
|
||||
Reference in New Issue
Block a user