Commit 52ccd0b3 authored by StyleZhang's avatar StyleZhang

resolve conflict

parents 672ea497 178e9d52
...@@ -310,7 +310,8 @@ const Main: FC<IMainProps> = ({ ...@@ -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
? { ? {
......
...@@ -259,7 +259,8 @@ const TextGeneration: FC<IMainProps> = ({ ...@@ -259,7 +259,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
? { ? {
......
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