Commit 47a2ebfa by 姜雷

添加token打印

parent 0249eb85
......@@ -21,6 +21,8 @@ service.interceptors.request.use(
conf => {
const { notLoading } = conf;
store.dispatch('fetchStart', notLoading);
console.info('token: ', store.getters.token);
if (store.getters.token) {
conf.headers = {
...conf.headers,
......
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