mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-13 21:35:59 +08:00
fix endpoint help link 404 (#14981)
This commit is contained in:
parent
4f6a4f244c
commit
83cad07fb3
@ -79,7 +79,7 @@ const EndpointList = ({ detail }: Props) => {
|
|||||||
</div>
|
</div>
|
||||||
<div className='text-text-tertiary system-xs-regular'>{t('plugin.detailPanel.endpointsTip')}</div>
|
<div className='text-text-tertiary system-xs-regular'>{t('plugin.detailPanel.endpointsTip')}</div>
|
||||||
<a
|
<a
|
||||||
href={`https://docs.dify.ai/${locale === LanguagesSupported[1] ? 'v/zh-hans/' : ''}guides/api-documentation/endpoint`}
|
href={`https://docs.dify.ai/${locale === LanguagesSupported[1] ? 'v/zh-hans/' : ''}plugins/schema-definition/endpoint`}
|
||||||
target='_blank'
|
target='_blank'
|
||||||
rel='noopener noreferrer'
|
rel='noopener noreferrer'
|
||||||
>
|
>
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import { useEffect, useMemo, useState } from 'react'
|
import { useEffect, useMemo, useState } from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
|
import { useContext } from 'use-context-selector'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import {
|
import {
|
||||||
RiBookOpenLine,
|
RiBookOpenLine,
|
||||||
@ -36,6 +37,8 @@ import { sleep } from '@/utils'
|
|||||||
import { fetchBundleInfoFromMarketPlace, fetchManifestFromMarketPlace } from '@/service/plugins'
|
import { fetchBundleInfoFromMarketPlace, fetchManifestFromMarketPlace } from '@/service/plugins'
|
||||||
import { marketplaceApiPrefix } from '@/config'
|
import { marketplaceApiPrefix } from '@/config'
|
||||||
import { SUPPORT_INSTALL_LOCAL_FILE_EXTENSIONS } from '@/config'
|
import { SUPPORT_INSTALL_LOCAL_FILE_EXTENSIONS } from '@/config'
|
||||||
|
import { LanguagesSupported } from '@/i18n/language'
|
||||||
|
import I18n from '@/context/i18n'
|
||||||
|
|
||||||
const PACKAGE_IDS_KEY = 'package-ids'
|
const PACKAGE_IDS_KEY = 'package-ids'
|
||||||
const BUNDLE_INFO_KEY = 'bundle-info'
|
const BUNDLE_INFO_KEY = 'bundle-info'
|
||||||
@ -49,6 +52,7 @@ const PluginPage = ({
|
|||||||
marketplace,
|
marketplace,
|
||||||
}: PluginPageProps) => {
|
}: PluginPageProps) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
const { locale } = useContext(I18n)
|
||||||
const searchParams = useSearchParams()
|
const searchParams = useSearchParams()
|
||||||
const { replace } = useRouter()
|
const { replace } = useRouter()
|
||||||
|
|
||||||
@ -164,7 +168,7 @@ const PluginPage = ({
|
|||||||
activeTab === 'discover' && (
|
activeTab === 'discover' && (
|
||||||
<>
|
<>
|
||||||
<Link
|
<Link
|
||||||
href='https://docs.dify.ai/plugins/publish-plugins/publish-to-dify-marketplace'
|
href={`https://docs.dify.ai/${locale === LanguagesSupported[1] ? 'v/zh-hans/' : ''}plugins/publish-plugins/publish-to-dify-marketplace`}
|
||||||
target='_blank'
|
target='_blank'
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user