|
|
|
@ -90,6 +90,9 @@ axios.interceptors.request.use(config => { |
|
|
|
if (config.text === true) { |
|
|
|
if (config.text === true) { |
|
|
|
config.headers["Content-Type"] = "text/plain"; |
|
|
|
config.headers["Content-Type"] = "text/plain"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (config.jsontext === true) { |
|
|
|
|
|
|
|
config.headers["Content-Type"] = "application/json"; |
|
|
|
|
|
|
|
} |
|
|
|
//headers中配置serialize为true开启序列化
|
|
|
|
//headers中配置serialize为true开启序列化
|
|
|
|
// if (config.method === 'post' && meta.isSerialize === true) {
|
|
|
|
// if (config.method === 'post' && meta.isSerialize === true) {
|
|
|
|
// config.data = serialize(config.data);
|
|
|
|
// config.data = serialize(config.data);
|
|
|
|
|