add route for workflow app

This commit is contained in:
JzoNg
2024-03-14 17:03:02 +08:00
parent ac675c4443
commit 58922ba40b
5 changed files with 23 additions and 7 deletions

View File

@ -55,11 +55,13 @@ type Task = {
export type IMainProps = {
isInstalledApp?: boolean
installedAppInfo?: InstalledApp
isWorkflow?: boolean
}
const TextGeneration: FC<IMainProps> = ({
isInstalledApp = false,
installedAppInfo,
isWorkflow = false,
}) => {
const { notify } = Toast
@ -346,6 +348,7 @@ const TextGeneration: FC<IMainProps> = ({
useEffect(() => {
(async () => {
console.log('isWorkflow', isWorkflow)
const [appData, appParams]: any = await fetchInitData()
const { app_id: appId, site: siteInfo, can_replace_logo } = appData
setAppId(appId)