Unverified Commit 9af0da44 authored by zxhlyh's avatar zxhlyh Committed by GitHub

fix jwt in web (#545)

parent d49ac1e4
...@@ -310,6 +310,7 @@ const Main: FC<IMainProps> = ({ ...@@ -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> = ({ ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment