From 1e2a2d33a8036cad3ad765c28709407465333521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=80=9D=E8=AF=BA=E7=89=B9?= Date: Thu, 1 May 2025 16:50:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(noteForm):=E4=BF=AE=E5=A4=8D=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E7=82=B9=E5=87=BB=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/.gitignore | 8 ++++++++ .../src/pages/HomePage/components/NoteForm.tsx | 9 +++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .idea/.gitignore diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/BillNote_frontend/src/pages/HomePage/components/NoteForm.tsx b/BillNote_frontend/src/pages/HomePage/components/NoteForm.tsx index 476945f..9a26b5d 100644 --- a/BillNote_frontend/src/pages/HomePage/components/NoteForm.tsx +++ b/BillNote_frontend/src/pages/HomePage/components/NoteForm.tsx @@ -21,7 +21,7 @@ import { useForm } from 'react-hook-form' import { z } from 'zod' import { zodResolver } from '@hookform/resolvers/zod' import { Info, Clock, Loader2 } from 'lucide-react' - +import { message } from 'antd' import { Tooltip, TooltipContent, @@ -156,7 +156,11 @@ const NoteForm = () => { } const isGenerating = () => { console.log('🚀 isGenerating', getCurrentTask()?.status) - return getCurrentTask()?.status != 'SUCCESS' && getCurrentTask()?.status != 'FAILED' && getCurrentTask()?.status != undefined + return ( + getCurrentTask()?.status != 'SUCCESS' && + getCurrentTask()?.status != 'FAILED' && + getCurrentTask()?.status != undefined + ) } const handleFileUpload = async (file: File, onSuccess: (url: string) => void) => { if (!file) return @@ -245,6 +249,7 @@ const NoteForm = () => { 哔哩哔哩 Youtube + {/*抖音*/} 本地视频