From cc6b38acdd82cde82bae3076467e2b74a8c26202 Mon Sep 17 00:00:00 2001 From: insistence <3055204202@qq.com> Date: Wed, 27 Aug 2025 09:25:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=96=B0=E5=A2=9Edisabled=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/FileUpload/index.vue | 2 +- .../src/components/ImageUpload/index.vue | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ruoyi-fastapi-frontend/src/components/FileUpload/index.vue b/ruoyi-fastapi-frontend/src/components/FileUpload/index.vue index f961b17..0cfe4dc 100644 --- a/ruoyi-fastapi-frontend/src/components/FileUpload/index.vue +++ b/ruoyi-fastapi-frontend/src/components/FileUpload/index.vue @@ -214,7 +214,7 @@ function listToString(list, separator) { // 初始化拖拽排序 onMounted(() => { - if (props.drag) { + if (props.drag && !props.disabled) { nextTick(() => { const element = proxy.$refs.uploadFileList?.$el || proxy.$refs.uploadFileList Sortable.create(element, { diff --git a/ruoyi-fastapi-frontend/src/components/ImageUpload/index.vue b/ruoyi-fastapi-frontend/src/components/ImageUpload/index.vue index db47699..d984a09 100644 --- a/ruoyi-fastapi-frontend/src/components/ImageUpload/index.vue +++ b/ruoyi-fastapi-frontend/src/components/ImageUpload/index.vue @@ -2,6 +2,7 @@
-
+
请上传