mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 20:17:29 +08:00
fix(api): correct variable name from 'apiaBaseUrl' to 'apiBaseUrl' in Service API components
This commit is contained in:
parent
4620bef25c
commit
d9839e5ec6
@ -30,7 +30,7 @@ const ExtraInfo = ({
|
|||||||
)}
|
)}
|
||||||
<ServiceApi
|
<ServiceApi
|
||||||
expand={expand}
|
expand={expand}
|
||||||
apiaBaseUrl={apiBaseInfo?.api_base_url ?? ''}
|
apiBaseUrl={apiBaseInfo?.api_base_url ?? ''}
|
||||||
apiEnabled={apiEnabled ?? false}
|
apiEnabled={apiEnabled ?? false}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@ -15,12 +15,12 @@ import SecretKeyModal from '@/app/components/develop/secret-key/secret-key-modal
|
|||||||
|
|
||||||
type CardProps = {
|
type CardProps = {
|
||||||
apiEnabled: boolean
|
apiEnabled: boolean
|
||||||
apiaBaseUrl: string
|
apiBaseUrl: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const Card = ({
|
const Card = ({
|
||||||
apiEnabled,
|
apiEnabled,
|
||||||
apiaBaseUrl,
|
apiBaseUrl,
|
||||||
}: CardProps) => {
|
}: CardProps) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
const datasetId = useDatasetDetailContextWithSelector(state => state.dataset?.id)
|
const datasetId = useDatasetDetailContextWithSelector(state => state.dataset?.id)
|
||||||
@ -90,11 +90,11 @@ const Card = ({
|
|||||||
<div className='flex h-8 items-center gap-0.5 rounded-lg bg-components-input-bg-normal p-1 pl-2'>
|
<div className='flex h-8 items-center gap-0.5 rounded-lg bg-components-input-bg-normal p-1 pl-2'>
|
||||||
<div className='flex h-4 min-w-0 flex-1 items-start justify-start gap-2 px-1'>
|
<div className='flex h-4 min-w-0 flex-1 items-start justify-start gap-2 px-1'>
|
||||||
<div className='system-xs-medium truncate text-text-secondary'>
|
<div className='system-xs-medium truncate text-text-secondary'>
|
||||||
{apiaBaseUrl}
|
{apiBaseUrl}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<CopyFeedback
|
<CopyFeedback
|
||||||
content={apiaBaseUrl}
|
content={apiBaseUrl}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -8,13 +8,13 @@ import Card from './card'
|
|||||||
|
|
||||||
type ServiceApiProps = {
|
type ServiceApiProps = {
|
||||||
expand: boolean
|
expand: boolean
|
||||||
apiaBaseUrl: string
|
apiBaseUrl: string
|
||||||
apiEnabled: boolean
|
apiEnabled: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const ServiceApi = ({
|
const ServiceApi = ({
|
||||||
expand,
|
expand,
|
||||||
apiaBaseUrl,
|
apiBaseUrl,
|
||||||
apiEnabled,
|
apiEnabled,
|
||||||
}: ServiceApiProps) => {
|
}: ServiceApiProps) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
@ -56,7 +56,7 @@ const ServiceApi = ({
|
|||||||
<PortalToFollowElemContent>
|
<PortalToFollowElemContent>
|
||||||
<Card
|
<Card
|
||||||
apiEnabled={apiEnabled}
|
apiEnabled={apiEnabled}
|
||||||
apiaBaseUrl={apiaBaseUrl}
|
apiBaseUrl={apiBaseUrl}
|
||||||
/>
|
/>
|
||||||
</PortalToFollowElemContent>
|
</PortalToFollowElemContent>
|
||||||
</PortalToFollowElem>
|
</PortalToFollowElem>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user