fix: 打包报错问题修复

Former-commit-id: 88a4220b4a10e3be4a8ef288144e8c8c24638a4a
This commit is contained in:
haoxr
2022-12-31 23:02:14 +08:00
parent f79651618e
commit 1ecf0663e6
4 changed files with 3 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ service.interceptors.request.use(
}
const user = useUserStoreHook();
if (user.token) {
config.headers.Authorization = getToken();
(config.headers as any).Authorization = getToken();
}
return config;
},