The problem of failed validation of iview form

how can this situation be broken? I assigned a value to image after uploading the picture, but the display cannot be empty
clipboard.png
clipboard.png
clipboard.png

.
Mar.03,2021

validateField ('image') after uploading


you lack the trigger attribute, that is, the type of event that triggers validation

here is an example:

title: [
    { required: true, message: '', trigger: 'blur' }
],
type: [
     { required: true, message: '', trigger: 'change' }
]
            
            

blur or change pictures usually use change

Menu