Skip to content

Commit

Permalink
perf: request add header x-module
Browse files Browse the repository at this point in the history
  • Loading branch information
刀刀 committed Jun 19, 2020
1 parent 7b66506 commit 6ff404b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ service.interceptors.request.use(
config.headers['Page-Name'] = encodeURIComponent(store.getters.currentPageName)
config.headers['Page-Url'] = location.href
config.headers['X-Token'] = getToken()
config.headers['X-Module'] = store.state.app.moduleName
}
return config
},
Expand Down

0 comments on commit 6ff404b

Please sign in to comment.