chore: 设计器内部 api 统一使用天梯 token
This commit is contained in:
parent
e33726e74e
commit
883d359149
@ -11,6 +11,7 @@ const instance = axios.create({
|
|||||||
instance.interceptors.request.use(
|
instance.interceptors.request.use(
|
||||||
(config) => {
|
(config) => {
|
||||||
// 可在此处添加统一请求头等配置
|
// 可在此处添加统一请求头等配置
|
||||||
|
config.headers.Authorization = `Bearer ${localStorage.getItem('y-code-access-token')}`;
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
(error) => {
|
(error) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user