From 0f3a88b70cf95300e410ffbfa9d6b18014cde635 Mon Sep 17 00:00:00 2001 From: icssoa <2570063477@qq.com> Date: Tue, 23 May 2023 14:21:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8A=E4=BC=A0=E7=A6=81?= =?UTF-8?q?=E7=94=A8=E5=B1=95=E7=A4=BA=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/upload/components/upload.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/upload/components/upload.vue b/src/modules/upload/components/upload.vue index 1361d43..64f93c2 100644 --- a/src/modules/upload/components/upload.vue +++ b/src/modules/upload/components/upload.vue @@ -269,7 +269,9 @@ const accept = computed(() => { // 能否添加 const isAdd = computed(() => { - return props.multiple ? limit - list.value.length > 0 : list.value.length == 0; + return props.multiple + ? !disabled.value && limit - list.value.length > 0 + : list.value.length == 0; }); // 获取类型