diff --git a/ruoyi-ui/src/components/FileUpload/index.vue b/ruoyi-ui/src/components/FileUpload/index.vue index 035b2eae..1b8a56f1 100644 --- a/ruoyi-ui/src/components/FileUpload/index.vue +++ b/ruoyi-ui/src/components/FileUpload/index.vue @@ -28,7 +28,7 @@ - +
  • {{ getFileName(file.name) }} @@ -105,7 +105,7 @@ export default { mounted() { if (this.drag) { this.$nextTick(() => { - const element = document.querySelector('.upload-file-list') + const element = this.$refs.uploadFileList?.$el || this.$refs.uploadFileList Sortable.create(element, { ghostClass: 'file-upload-darg', onEnd: (evt) => {