Commit fb797971 authored by 罗超's avatar 罗超

1

parent 01cf62fe
......@@ -82,9 +82,9 @@ service.interceptors.request.use(
if (localStorage.vuex && JSON.parse(localStorage.vuex).user?.token) {
//TODO:Access_TOKEN 的获取,需要根据实际业务情况进行调整
const token = Store.state.user?.token
const tokenType = token.token_type
// const tokenType = token.token_type
const accessToken = token.access_token
config.headers.Token = `${tokenType} ${accessToken}`
config.headers.Token = `${accessToken}`
}
//TODO:包装一层MSG,但是微服务应该去掉此步骤
......
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