From 514b077da4ba4f053451d44374a60c6da80e5363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B6=85=E7=BA=A7=E8=80=81=E7=99=BD=E5=85=94?= Date: Tue, 9 Sep 2025 16:53:47 +0800 Subject: [PATCH] =?UTF-8?q?refactor(SimpleFileUpload):=20=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E5=B9=B6=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 清理未使用的React hooks和antd组件导入,保持代码简洁 --- Cunkebao/src/components/Upload/SimpleFileUpload/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Cunkebao/src/components/Upload/SimpleFileUpload/index.tsx b/Cunkebao/src/components/Upload/SimpleFileUpload/index.tsx index e6b22847..014c3dd1 100644 --- a/Cunkebao/src/components/Upload/SimpleFileUpload/index.tsx +++ b/Cunkebao/src/components/Upload/SimpleFileUpload/index.tsx @@ -1,7 +1,6 @@ -import React, { useRef, useState } from "react"; -import { Button, message } from "antd"; -import { FolderOutlined, LoadingOutlined } from "@ant-design/icons"; import { uploadFile } from "@/api/common"; +import React, { useRef } from "react"; +import { message } from "antd"; interface SimpleFileUploadProps { onFileUploaded?: (filePath: string) => void;