|
@@ -5,7 +5,7 @@ import { config } from './config'
|
|
const { default_headers } = config
|
|
const { default_headers } = config
|
|
|
|
|
|
const request = (option) => {
|
|
const request = (option) => {
|
|
- const { url, method, params, data, headersType, responseType, headers, ...config } = option
|
|
|
|
|
|
+ const { url, method, params, data, headersType, responseType, ...config } = option
|
|
return service({
|
|
return service({
|
|
url: url,
|
|
url: url,
|
|
method,
|
|
method,
|
|
@@ -14,7 +14,8 @@ const request = (option) => {
|
|
...config,
|
|
...config,
|
|
responseType: responseType,
|
|
responseType: responseType,
|
|
headers: {
|
|
headers: {
|
|
- ...headers,
|
|
|
|
|
|
+ 'If-None-Match': false,
|
|
|
|
+ 'Cache-Control': 'no-store', // 全局设置不使用缓存
|
|
'Content-Type': headersType || default_headers
|
|
'Content-Type': headersType || default_headers
|
|
}
|
|
}
|
|
})
|
|
})
|