feat: 语法错误修复
This commit is contained in:
@@ -10,7 +10,7 @@ instance.interceptors.request.use(
|
||||
(config) => {
|
||||
const token = localStorage.getItem('token')
|
||||
if (token) {
|
||||
config.headers = { ...(config.headers || {}), Authorization: `Bearer ${token}` }
|
||||
(config as any).headers = { ...(config.headers || {}), Authorization: `Bearer ${token}` }
|
||||
}
|
||||
return config
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user