fix: authorization
Some checks failed
coverage CI / build (push) Has been cancelled

This commit is contained in:
2025-10-13 17:01:18 +08:00
parent ed92397237
commit a5b7207f44
2 changed files with 4 additions and 2 deletions

View File

@@ -188,7 +188,7 @@ export const request: RequestConfig = {
};
// 如果有token则添加Authorization头
if (token) {
headers.Authorization = `Bearer·${getAccessToken()}`;
headers.Authorization = `Bearer ${getAccessToken()}`;
}
return { url, options: { ...options, headers } };
},