This commit is contained in:
wangchengming 2025-08-20 22:21:17 +08:00
parent 8e4e571bcd
commit 6e28467f40

View File

@ -31,7 +31,7 @@
</div> </div>
</div> </div>
<el-upload action="#" class="noFileCard" :http-request="requestUpload" list-type="picture-card" <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"> :before-upload="beforeUpload">
<el-icon class="avatar-uploader-icon"> <el-icon class="avatar-uploader-icon">
<Plus /> <Plus />
@ -187,6 +187,7 @@ const beforeUpload = (file) => {
const handleChange = (file, files) => { const handleChange = (file, files) => {
// //
// fileList // fileList
console.log('清空')
cardfileList.value = [] cardfileList.value = []
} }
// //