分页上传先行版上线,轻更新数据库

This commit is contained in:
pixel
2020-02-17 16:50:09 +08:00
parent 4da4504e93
commit f25821f58c
6 changed files with 334 additions and 100 deletions

View File

@@ -32,9 +32,9 @@ service.interceptors.request.use(
config => {
showLoading()
const token = store.getters['user/token']
config.data = JSON.stringify(config.data);
config.data = config.headers['Content-Type'] == 'application/json' ? config.data : JSON.stringify(config.data);
config.headers = {
'Content-Type': 'application/json',
'Content-Type': config.headers['Content-Type'] || 'application/json',
'x-token': token
}
return config;