fix url of webapp

This commit is contained in:
JzoNg 2024-03-14 12:35:12 +08:00
parent 300909341e
commit 7eeffb16e2
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ function AppCard({
: t('appOverview.overview.apiInfo.title')
const runningStatus = isApp ? appInfo.enable_site : appInfo.enable_api
const { app_base_url, access_token } = appInfo.site ?? {}
const appMode = appInfo.mode === ('completion' || appInfo.mode === 'workflow') ? 'completion' : 'chat'
const appMode = (appInfo.mode === 'completion' || appInfo.mode === 'workflow') ? 'completion' : 'chat'
const appUrl = `${app_base_url}/${appMode}/${access_token}`
const apiUrl = appInfo?.api_base_url