http.js 244 Bytes
Newer Older
zhanghaozhe committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
import axios from "axios";
import qs from 'qs'

const instance = axios.create({
    transformRequest: [
        (data) => qs.stringify(data)
    ],
    headers: {
        HTTP_PLAT_FORM: 5,
        HTTP_PLAT: 5
    }
})

export default instance