1. 程式人生 > >axios上傳圖片後臺出現the request was rejected because no multipart boundary was found

axios上傳圖片後臺出現the request was rejected because no multipart boundary was found

//不需要進行序列化 qs.stringify(params)
export function uploadImg(params) {
    return service({
        url: 'motionGraph',
        method: 'post',
        headers:{'Content-type': 'multipart/form-data'},
        data: params,
    })
}