From 00c392e633a9954e33fc96971a9a4aaa3c5159a4 Mon Sep 17 00:00:00 2001
From: chanx <1243304602@qq.com>
Date: Fri, 6 Feb 2026 14:42:16 +0800
Subject: [PATCH] Fix: dataset page enter key to save (#13035)
### What problem does this PR solve?
Fix dataset page enter key to save
Fix the warnings and optimize the code.
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
---
web/src/components/ragflow-avatar.tsx | 1 -
web/src/components/ui/modal/modal.tsx | 2 ++
web/src/pages/datasets/dataset-creating-dialog.tsx | 13 ++++++++++++-
web/vite.config.ts | 6 ++++++
4 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/web/src/components/ragflow-avatar.tsx b/web/src/components/ragflow-avatar.tsx
index e3bfc5700..e71e6886e 100644
--- a/web/src/components/ragflow-avatar.tsx
+++ b/web/src/components/ragflow-avatar.tsx
@@ -101,7 +101,6 @@ export const RAGFlowAvatar = memo(
}}
className={cn(
'bg-gradient-to-b',
- `from-[${from}] to-[${to}]`,
'flex items-center justify-center',
'text-white ',
{ 'rounded-md': !isPerson },
diff --git a/web/src/components/ui/modal/modal.tsx b/web/src/components/ui/modal/modal.tsx
index a3f6d06fe..e62e0c165 100644
--- a/web/src/components/ui/modal/modal.tsx
+++ b/web/src/components/ui/modal/modal.tsx
@@ -4,6 +4,7 @@ import * as DialogPrimitive from '@radix-ui/react-dialog';
import { Loader, X } from 'lucide-react';
import { FC, ReactNode, useCallback, useEffect, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
+import { DialogDescription } from '../dialog';
import { createPortalModal } from './modal-manage';
export interface ModalProps {
@@ -184,6 +185,7 @@ const Modal: ModalType = ({
style={style}
onClick={(e) => e.stopPropagation()}
>
+