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