refactor: use options object in useDocLink calls

This commit is contained in:
yyh
2026-02-13 10:37:38 +08:00
parent e45d4d8d90
commit c0bba03b13
4 changed files with 18 additions and 10 deletions

View File

@ -33,7 +33,7 @@ const ArtifactsEmpty = ({ description }: { description: string }) => {
<div className="text-text-tertiary system-xs-regular">{description}</div>
<a
className="cursor-pointer text-text-accent system-xs-regular"
href={docLink('/use-dify/build/file-system#artifacts' as DocPathWithoutLang, undefined, fileSystemArtifactsAnchorMap)}
href={docLink('/use-dify/build/file-system#artifacts' as DocPathWithoutLang, { anchorMap: fileSystemArtifactsAnchorMap })}
target="_blank"
rel="noopener noreferrer"
>