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
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
import * as React from 'react'
|
||||
import { useChatContext } from '@/app/components/base/chat/chat/context'
|
||||
import { isOfficialDifyUrl } from '@/utils/official-link'
|
||||
import { isValidUrl } from './utils'
|
||||
|
||||
const filePreviewPathPattern = /\/files\/[^/?#]+\/file-preview(?:[?#]|$)/
|
||||
@@ -57,6 +58,8 @@ const Link = ({ node, children, ...props }: any) => {
|
||||
)
|
||||
}
|
||||
|
||||
if (href && isOfficialDifyUrl(href)) return null
|
||||
|
||||
if (!href || !isValidUrl(href)) return <span>{children}</span>
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user