The following example is to solve the el-select multiple drop-down multi-select control
The expected effect is: when the page is opened, the outgoing location is the same as other attributes, and the non-empty check of the form will not be automatically triggered, but will be triggered when the current attribute is operated.
Solution: Set the initial value to an empty array
data() {
return {
form: {
goOutArriveCityId: []
},
}
If it is not multi-choice, it is an input box or other, just initialize the corresponding value. The idea is probably like this~