refector: 请求不携带时间戳,需要的时候自行携带

This commit is contained in:
caoqianming 2023-05-25 10:02:29 +08:00
parent c4b4e95ce5
commit 12f60e490b
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ axios.interceptors.request.use(
}
if(!sysConfig.REQUEST_CACHE && config.method == 'get'){
config.params = config.params || {};
config.params['_'] = new Date().getTime();
// config.params['_'] = new Date().getTime();
}
Object.assign(config.headers, sysConfig.HEADERS)
return config;