Demo:修复导入弹窗选择了一个文件后再把它删除实际上并没有删掉的问题

This commit is contained in:
街角小林 2024-03-07 10:40:21 +08:00
parent 798591f6f9
commit 70b6b0052f

View File

@ -8,10 +8,12 @@
<el-upload <el-upload
ref="upload" ref="upload"
action="x" action="x"
accept=".smm,.json,.xmind,.xlsx,.md"
:file-list="fileList" :file-list="fileList"
:auto-upload="false" :auto-upload="false"
:multiple="false" :multiple="false"
:on-change="onChange" :on-change="onChange"
:on-remove="onRemove"
:limit="1" :limit="1"
:on-exceed="onExceed" :on-exceed="onExceed"
> >
@ -117,6 +119,11 @@ export default {
} }
}, },
//
onRemove(file, fileList) {
this.fileList = fileList
},
/** /**
* @Author: 王林 * @Author: 王林
* @Date: 2021-08-03 22:48:47 * @Date: 2021-08-03 22:48:47