Commit dd899331 by 姜雷

提高打印等级

parent 47a2ebfa
...@@ -21,13 +21,14 @@ service.interceptors.request.use( ...@@ -21,13 +21,14 @@ service.interceptors.request.use(
conf => { conf => {
const { notLoading } = conf; const { notLoading } = conf;
store.dispatch('fetchStart', notLoading); store.dispatch('fetchStart', notLoading);
console.info('token: ', store.getters.token); let token = store.getters.token;
console.error('token: ', token);
if (store.getters.token) { if (token) {
conf.headers = { conf.headers = {
...conf.headers, ...conf.headers,
reqSource: 'pc', reqSource: 'pc',
token: store.getters.token, token: token,
ip: ip, ip: ip,
}; };
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment