|
|
@ -7,7 +7,10 @@ import axios from 'axios' |
|
|
|
const service = axios.create({ |
|
|
|
const service = axios.create({ |
|
|
|
//baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
|
|
|
|
//baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
|
|
|
|
// withCredentials: true, // send cookies when cross-domain requests
|
|
|
|
// withCredentials: true, // send cookies when cross-domain requests
|
|
|
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, |
|
|
|
//headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
|
|
|
|
|
|
headers: { |
|
|
|
|
|
|
|
'Content-Type': 'multipart/form-data' |
|
|
|
|
|
|
|
}, |
|
|
|
// headers: { 'Content-Type': 'multipart/form-data' },
|
|
|
|
// headers: { 'Content-Type': 'multipart/form-data' },
|
|
|
|
// headers: {
|
|
|
|
// headers: {
|
|
|
|
// 'Content-Type': 'application/x-www-form-urlencoded'
|
|
|
|
// 'Content-Type': 'application/x-www-form-urlencoded'
|
|
|
|