Commit 96e0d61b authored by lipengcheng 's avatar lipengcheng

fix: youhua

parent 06a9e1de
......@@ -13,8 +13,8 @@
* let xx = await this.$api.getBanner({}, {timeout: 1000, headers:{ aaa: 111 }})
*/
import { request } from '@/plugins/axios/index'
import qs from 'qs'
console.log('qs:', qs)
// import qs from 'qs'
// console.log('qs:', qs)
const apiMap = {
getBanner: { method: 'get', url: '/home/banner' },
......@@ -31,8 +31,8 @@ function injectRequest(apiObj) {
return request({
method,
url,
[keyName]: method === 'POST' ? qs.stringify(dataOrParams) : dataOrParams,
// [keyName]: dataOrParams,
// [keyName]: method === 'POST' ? qs.stringify(dataOrParams) : dataOrParams,
[keyName]: dataOrParams,
...Object.assign(config || {}, instanceConf)
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment