<dropzone
ref="test"
v-if="!isUploader"
:id="formItem.id"
@vdropzone-max-files-exceeded="checkExceeded"
@vdropzone-success="onUploadSuccess"
@vdropzone-removed-file="onRemoveUploadingFile"
@vdropzone-max-files-reached="onAddFiles"
:options="dzOptions">
<input type="hidden" name="token" value="xxx">
</dropzone>
computed: {
dzOptions () {
let config = {
dictDefaultMessage: '将本地文件拖到æ¤å¤„ï¼Œæˆ–ç‚¹å‡»ä¸Šä¼ ',
url: '/api/upload_file/',
acceptedMimeTypes: this.formItem.value.regex.join(','),
}
if (this.formItem.value.type === 'file') {
return {
...config,
maxFiles: 1
}
} else {
return {
...config,
maxFiles: 20
}
}
},

See, the "REMOVE FILE" button is lost.
In your dzOptions you need to have addRemoveLinks: true
thanks for help
Thanks! But i cannot find this in docs
Most helpful comment
In your
dzOptionsyou need to haveaddRemoveLinks: true