From 6cafa3373e6140feaaf9f1dceb8037ee747c717e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=9A=E5=B1=BF?= <1491182878@qq.com> Date: Tue, 6 May 2025 04:53:32 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E7=BB=84=E4=BB=B6=E5=9C=A8=E5=90=8C=E4=B8=80=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=B8=AD=E8=A2=AB=E5=A4=9A=E6=AC=A1=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E4=BB=85=E6=9C=89=E7=AC=AC=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=8B=96=E6=8B=BD=E5=8A=9F=E8=83=BD=E7=94=9F?= =?UTF-8?q?=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 稚屿 <1491182878@qq.com> --- ruoyi-ui/src/components/ImageUpload/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-ui/src/components/ImageUpload/index.vue b/ruoyi-ui/src/components/ImageUpload/index.vue index b723ab9a..d4429851 100644 --- a/ruoyi-ui/src/components/ImageUpload/index.vue +++ b/ruoyi-ui/src/components/ImageUpload/index.vue @@ -104,7 +104,7 @@ export default { mounted() { if (this.drag) { this.$nextTick(() => { - const element = document.querySelector('.el-upload-list') + const element = this.$refs.imageUpload?.$el?.querySelector('.el-upload-list') Sortable.create(element, { onEnd: (evt) => { const movedItem = this.fileList.splice(evt.oldIndex, 1)[0]