mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 22:08:25 +08:00
Demo:修复导入弹窗选择了一个文件后再把它删除实际上并没有删掉的问题
This commit is contained in:
@@ -8,10 +8,12 @@
|
||||
<el-upload
|
||||
ref="upload"
|
||||
action="x"
|
||||
accept=".smm,.json,.xmind,.xlsx,.md"
|
||||
:file-list="fileList"
|
||||
:auto-upload="false"
|
||||
:multiple="false"
|
||||
:on-change="onChange"
|
||||
:on-remove="onRemove"
|
||||
:limit="1"
|
||||
:on-exceed="onExceed"
|
||||
>
|
||||
@@ -117,6 +119,11 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
// 移除文件
|
||||
onRemove(file, fileList) {
|
||||
this.fileList = fileList
|
||||
},
|
||||
|
||||
/**
|
||||
* @Author: 王林
|
||||
* @Date: 2021-08-03 22:48:47
|
||||
|
||||
Reference in New Issue
Block a user