<template bb0 <el-form-item label=" #" : Upload Action ="#" : Upload Action ="1" list-type="picture-card" :class="{hide: hideUploadEdit }" :on-change="onChangeFile" :on-remove="handleRemove" :auto-upload="false" > <i class="el-icon-plus" /> </el-upload> </el-form-item> </template> <script> export default { data() { return { form: { fileList: [] }, formData: new FormData(), hideUploadEdit: false } }, methods: { handleRemove() { this.form.fileList = [] this.hideUploadEdit = false }, onChangeFile(file, fileList) { this.form.fileList = this.form.fileList.concat(fileList) this.hideUploadEdit = true }, OnSubmit () {for (const key in this.form.filelist) {const element = this.form.filelist [key] // file name // Element. The raw files / / element. Name the file name enclosing formData. Append (' file 'element. Raw, element.name) } } } } </script> <style> .hide .el-upload.el-upload--picture-card { display: none ! important; } </style>