弹窗组件中的多选下拉框选中了值还是提示验证失败信息,但实际上点确认验证是成功的,如下图: 页面代码 <el-form-item label="角色:" prop="roleIdList"> <el-select v-model="editForm.roleIdList" multiple placeholder="请选择"> <el-option v-for="item in roleData" :key="item.key" :label="item...
页面代码 <el-form-itemlabel="角色:"prop="roleIdList"> <el-selectv-model="editForm.roleIdList"multipleplaceholder="请选择"> <el-optionv-for="item in roleData":key="item.key":label="item.value":value="item.key"/> </el-select> </el-form-item> 验证代码 constroleValid =function(rul...