1
This commit is contained in:
parent
8e4e571bcd
commit
6e28467f40
|
@ -31,7 +31,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<el-upload action="#" class="noFileCard" :http-request="requestUpload" list-type="picture-card"
|
||||
:file-list="cardfileList" :limit="1" :on-change="handleChange" :show-file-list="false"
|
||||
:file-list="cardfileList" :on-change="handleChange" :show-file-list="false"
|
||||
:before-upload="beforeUpload">
|
||||
<el-icon class="avatar-uploader-icon">
|
||||
<Plus />
|
||||
|
@ -187,6 +187,7 @@ const beforeUpload = (file) => {
|
|||
const handleChange = (file, files) => {
|
||||
// 可以在这里添加文件变化时的额外处理逻辑
|
||||
// 不需要清空 fileList,因为上传逻辑会处理
|
||||
console.log('清空')
|
||||
cardfileList.value = []
|
||||
}
|
||||
// 暴露方法给父组件
|
||||
|
|
Loading…
Reference in New Issue
Block a user