1.0.0 • Published 5 years ago
mpx-fetch v1.0.0
mpx-fetch
a http request lib for mpx framework.
Usage
import mpx from 'mpx'
import fetch from 'mpx-fetch'
mpx.use(fetch)
mpx.xfetch.fetch({
url,
data: {},
header: {'content-type': 'application/x-www-form-urlencoded'},
method: 'GET'
}).then(res => {
console.log(res)
})
1.0.0
5 years ago