feat(dify): 把本地控制台的中文与去外链改动入库

这些界面改动和专家服务草稿停在工作区,没有随上一笔主分支提交进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-11-23 09:44:09 +08:00
1 parent 9c7c80e194
commit c2cb845a32
211 files changed
+3030 -2794

No files matched your search

@@ -14,7 +14,6 @@ import EconomicalRetrievalMethodConfig from '@/app/components/datasets/common/ec
import RetrievalMethodConfig from '@/app/components/datasets/common/retrieval-method-config'
import { toast } from '@/app/notifications'
import { useDatasetDetailContextWithSelector } from '@/context/dataset-detail'
import { useDocLink } from '@/context/i18n'
import { consoleQuery } from '@/service/console'
import { ModelTypeEnum } from '../../header/account-setting/model-provider-page/declarations'
import { checkShowMultiModalTip } from '../settings/utils'
@@ -29,8 +28,7 @@ type Props = Readonly<{
const ModifyRetrievalModal: FC<Props> = ({ indexMethod, value, isShow, onHide, onSave }) => {
const ref = useRef(null)
const { t } = useTranslation(['appDebug', 'common', 'datasetSettings'])
const docLink = useDocLink()
const [retrievalConfig, setRetrievalConfig] = useState(value)
const [retrievalConfig, setRetrievalConfig] = useState(value)
const embeddingModel = useDatasetDetailContextWithSelector(
(state) => state.dataset?.embedding_model,
)
@@ -109,14 +107,6 @@ const ModifyRetrievalModal: FC<Props> = ({ indexMethod, value, isShow, onHide, o
{t(($) => $['form.retrievalSetting.title'], { ns: 'datasetSettings' })}
</DrawerTitle>
<div className="text-xs leading-4.5 font-normal text-text-tertiary">
<a
target="_blank"
rel="noopener noreferrer"
href={docLink('/use-dify/knowledge/create-knowledge/setting-indexing-methods')}
className="text-text-accent"
>
{t(($) => $['form.retrievalSetting.learnMore'], { ns: 'datasetSettings' })}
</a>
{t(($) => $['form.retrievalSetting.description'], { ns: 'datasetSettings' })}
</div>
</div>