Fix: Chat/Agent embedded page (#13199)

### What problem does this PR solve?

Fix: Chat/Agent embedded page #13190

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Magicbook1108
2026-02-24 19:14:24 +08:00
committed by GitHub
parent d89ad8b79d
commit 46dec98f52
5 changed files with 20 additions and 13 deletions

View File

@ -48,8 +48,15 @@ const storage = {
};
export const getAuthorization = () => {
const jwtAuth = getSearchValue('jwt_auth');
if (jwtAuth) {
return jwtAuth;
}
const auth = getSearchValue('auth');
const authorization = auth ? auth : storage.getAuthorization() || '';
const authorization = auth
? 'Bearer ' + auth
: storage.getAuthorization() || '';
return authorization;
};