refector: 请求不携带时间戳,需要的时候自行携带
This commit is contained in:
parent
c4b4e95ce5
commit
12f60e490b
|
@ -21,7 +21,7 @@ axios.interceptors.request.use(
|
||||||
}
|
}
|
||||||
if(!sysConfig.REQUEST_CACHE && config.method == 'get'){
|
if(!sysConfig.REQUEST_CACHE && config.method == 'get'){
|
||||||
config.params = config.params || {};
|
config.params = config.params || {};
|
||||||
config.params['_'] = new Date().getTime();
|
// config.params['_'] = new Date().getTime();
|
||||||
}
|
}
|
||||||
Object.assign(config.headers, sysConfig.HEADERS)
|
Object.assign(config.headers, sysConfig.HEADERS)
|
||||||
return config;
|
return config;
|
||||||
|
|
Loading…
Reference in New Issue