commit
ff3f3f2631
|
@ -104,7 +104,7 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.drag) {
|
if (this.drag) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
const element = document.querySelector('.el-upload-list')
|
const element = this.$refs.imageUpload?.$el?.querySelector('.el-upload-list')
|
||||||
Sortable.create(element, {
|
Sortable.create(element, {
|
||||||
onEnd: (evt) => {
|
onEnd: (evt) => {
|
||||||
const movedItem = this.fileList.splice(evt.oldIndex, 1)[0]
|
const movedItem = this.fileList.splice(evt.oldIndex, 1)[0]
|
||||||
|
|
Loading…
Reference in New Issue