feat(dify): 把本地控制台的中文与去外链改动入库
这些界面改动和专家服务草稿停在工作区,没有随上一笔主分支提交进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
9c7c80e194
commit
c2cb845a32
211 files changed
+3030
-2794
No files matched your search
@@ -10,6 +10,7 @@ import { FormTypeEnum } from '@/app/components/header/account-setting/model-prov
|
||||
import { useLanguage } from '@/app/components/header/account-setting/model-provider-page/hooks'
|
||||
import { SchemaDialog } from '@/app/components/plugins/plugin-detail-panel/tool-selector/components/schema-dialog'
|
||||
import FormInputItem from '@/app/components/workflow/nodes/_base/components/form-input-item'
|
||||
import { isOfficialDifyUrl } from '@/utils/official-link'
|
||||
|
||||
const URL_REGEX = /(https?:\/\/\S+)/g
|
||||
|
||||
@@ -27,6 +28,11 @@ const renderDescriptionWithLinks = (description: string): ReactNode => {
|
||||
|
||||
if (start > currentIndex) parts.push(description.slice(currentIndex, start))
|
||||
|
||||
if (isOfficialDifyUrl(url)) {
|
||||
currentIndex = start + url.length
|
||||
return
|
||||
}
|
||||
|
||||
parts.push(
|
||||
<a
|
||||
key={`${url}-${start}`}
|
||||
|
||||
Reference in new issue
Block a user