mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-13 04:46:52 +08:00
fix jwt in web (#545)
This commit is contained in:
@@ -310,6 +310,7 @@ const Main: FC<IMainProps> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const fetchInitData = async () => {
|
const fetchInitData = async () => {
|
||||||
|
if (!isInstalledApp)
|
||||||
await checkOrSetAccessToken()
|
await checkOrSetAccessToken()
|
||||||
|
|
||||||
return Promise.all([isInstalledApp
|
return Promise.all([isInstalledApp
|
||||||
|
|||||||
@@ -255,6 +255,7 @@ const TextGeneration: FC<IMainProps> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const fetchInitData = async () => {
|
const fetchInitData = async () => {
|
||||||
|
if (!isInstalledApp)
|
||||||
await checkOrSetAccessToken()
|
await checkOrSetAccessToken()
|
||||||
|
|
||||||
return Promise.all([isInstalledApp
|
return Promise.all([isInstalledApp
|
||||||
|
|||||||
Reference in New Issue
Block a user