瀏覽代碼

Add the parameter appid to apiserver (#18224)

tags/1.3.0
AirLin 6 月之前
父節點
當前提交
6da7e6158f
No account linked to committer's email address
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 3
    1
      web/app/components/develop/ApiServer.tsx
  2. 1
    1
      web/app/components/develop/index.tsx

+ 3
- 1
web/app/components/develop/ApiServer.tsx 查看文件



type ApiServerProps = { type ApiServerProps = {
apiBaseUrl: string apiBaseUrl: string
appId?: string
} }
const ApiServer: FC<ApiServerProps> = ({ const ApiServer: FC<ApiServerProps> = ({
apiBaseUrl, apiBaseUrl,
appId,
}) => { }) => {
const { t } = useTranslation() const { t } = useTranslation()


{t('appApi.ok')} {t('appApi.ok')}
</div> </div>
<SecretKeyButton <SecretKeyButton
className='!h-8 shrink-0'
className='!h-8 shrink-0' appId={appId}
/> />
</div> </div>
) )

+ 1
- 1
web/app/components/develop/index.tsx 查看文件

<div className='relative flex h-full flex-col overflow-hidden'> <div className='relative flex h-full flex-col overflow-hidden'>
<div className='flex shrink-0 items-center justify-between border-b border-solid border-b-divider-regular px-6 py-2'> <div className='flex shrink-0 items-center justify-between border-b border-solid border-b-divider-regular px-6 py-2'>
<div className='text-lg font-medium text-text-primary'></div> <div className='text-lg font-medium text-text-primary'></div>
<ApiServer apiBaseUrl={appDetail.api_base_url} />
<ApiServer apiBaseUrl={appDetail.api_base_url} appId={appId} />
</div> </div>
<div className='grow overflow-auto px-4 py-4 sm:px-10'> <div className='grow overflow-auto px-4 py-4 sm:px-10'>
<Doc appDetail={appDetail} /> <Doc appDetail={appDetail} />

Loading…
取消
儲存