From 0463005c9222722a81965b7e0f7eb89e750e977a Mon Sep 17 00:00:00 2001 From: Haiyi <1021441632@qq.com> Date: Thu, 9 Mar 2023 16:14:12 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(ID1001466):=E3=80=90?= =?UTF-8?q?=E5=86=85=E9=83=A8=E5=95=86=E5=9F=8E=E3=80=91-=E5=8A=9F?= =?UTF-8?q?=E8=83=BD{=E5=8F=91=E8=B4=A7=E5=88=97=E8=A1=A8}=EF=BC=9A?= =?UTF-8?q?=E6=B2=A1=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87=EF=BC=8C=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E4=B8=8A=E4=BC=A0=E9=99=84=E4=BB=B6=E6=8C=89=E9=92=AE?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E7=A4=BA=E4=B8=8A=E4=BC=A0=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/deliveryDetail/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pages/deliveryDetail/index.tsx b/src/pages/deliveryDetail/index.tsx index c60ae16..1929e58 100644 --- a/src/pages/deliveryDetail/index.tsx +++ b/src/pages/deliveryDetail/index.tsx @@ -81,6 +81,9 @@ const DeliveryDetail: FC = () => { } // 上传附件 const handleUploadPic = useCallback(async() => { + if (!readyToUploadList.length) { + return alert.error('请先上传附件') + } console.log('readyToUploadList:::', readyToUploadList) const res = await uploadData({ id: Number(router.params.id),