mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-28 04:31:57 +08:00
修复上传组件被多次引用拖动仅对第一个有效的问题
This commit is contained in:
@@ -102,7 +102,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]
|
||||
|
||||
Reference in New Issue
Block a user