feat(frontend): add AuthenticatedImg component for authorized image requests (#16525)

This commit is contained in:
euvre
2026-07-01 17:02:44 +08:00
committed by GitHub
parent 97a4c64cc8
commit 81cfcdf2d3
8 changed files with 117 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
import Image from '@/components/image';
import Image, { AuthenticatedImg } from '@/components/image';
import SvgIcon from '@/components/svg-icon';
import { MarkdownRemarkPlugins } from '@/constants/markdown-remark-plugins';
import { IReference, IReferenceChunk } from '@/interfaces/database/chat';
@@ -203,7 +203,7 @@ const MarkdownContent = ({
{documentId && (
<section className="flex gap-1">
{fileThumbnail ? (
<img
<AuthenticatedImg
src={fileThumbnail}
alt=""
className={styles.fileThumbnail}