fix jwt in web (#545)

This commit is contained in:
zxhlyh 2023-07-11 17:07:52 +08:00 committed by GitHub
parent d49ac1e4ac
commit 9af0da4450
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -310,7 +310,8 @@ const Main: FC<IMainProps> = ({
} }
const fetchInitData = async () => { const fetchInitData = async () => {
await checkOrSetAccessToken() if (!isInstalledApp)
await checkOrSetAccessToken()
return Promise.all([isInstalledApp return Promise.all([isInstalledApp
? { ? {

View File

@ -255,7 +255,8 @@ const TextGeneration: FC<IMainProps> = ({
} }
const fetchInitData = async () => { const fetchInitData = async () => {
await checkOrSetAccessToken() if (!isInstalledApp)
await checkOrSetAccessToken()
return Promise.all([isInstalledApp return Promise.all([isInstalledApp
? { ? {