mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-16 07:15:55 +08:00
fix jwt in web (#545)
This commit is contained in:
parent
d49ac1e4ac
commit
9af0da4450
@ -310,7 +310,8 @@ const Main: FC<IMainProps> = ({
|
||||
}
|
||||
|
||||
const fetchInitData = async () => {
|
||||
await checkOrSetAccessToken()
|
||||
if (!isInstalledApp)
|
||||
await checkOrSetAccessToken()
|
||||
|
||||
return Promise.all([isInstalledApp
|
||||
? {
|
||||
|
@ -255,7 +255,8 @@ const TextGeneration: FC<IMainProps> = ({
|
||||
}
|
||||
|
||||
const fetchInitData = async () => {
|
||||
await checkOrSetAccessToken()
|
||||
if (!isInstalledApp)
|
||||
await checkOrSetAccessToken()
|
||||
|
||||
return Promise.all([isInstalledApp
|
||||
? {
|
||||
|
Loading…
x
Reference in New Issue
Block a user