登录接口联调完成
This commit is contained in:
@@ -15,7 +15,7 @@ request.interceptors.request.use(
|
||||
// 在请求头中添加token
|
||||
const token = store.state.token;
|
||||
if (token) {
|
||||
config.headers['Authorization'] = `Bearer ${token}`;
|
||||
config.headers['Authorization'] = `${token}`;
|
||||
}
|
||||
return config;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user