feat: 语法错误修复

This commit is contained in:
duanshuwen
2025-11-23 15:12:15 +08:00
parent 6013c38fe7
commit 0b1e7a6679
5 changed files with 631 additions and 1183 deletions

View File

@@ -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
},