From 0dcd3e6183abcf3325186b2712bd120188549f7e Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Tue, 06 May 2025 14:54:44 +0800
Subject: [PATCH] add columnName Drag
---
ruoyi-ui/src/components/ImageUpload/index.vue | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ruoyi-ui/src/components/ImageUpload/index.vue b/ruoyi-ui/src/components/ImageUpload/index.vue
index 02bdaa6..8520b83 100644
--- a/ruoyi-ui/src/components/ImageUpload/index.vue
+++ b/ruoyi-ui/src/components/ImageUpload/index.vue
@@ -102,7 +102,7 @@
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]
--
Gitblit v1.9.3