遇到有值的情况下,表单验证还是过不去,先看绑定的值有没有问题
1.
<el-form
ref="elForm"
:rules="rules"
:model="dataForm"
2.
<el-form-item label="XXX:" prop="tradeService">
3. rules:
tradeService: [
{
required: true,
message: "必須項目は入力してください",
trigger: "change",
},
],