fix: form validation on input change

(cherry picked from commit c20ce54dacfe4ccc31974a9a9092938ed47db4bb)
remotes/origin/HEAD
鲁树人 3 years ago
parent 290986e546
commit de1c686231

@ -26,8 +26,8 @@ form >>> input {
</style> </style>
<template> <template>
<el-dialog @close="cancel()" title="解密设定" :rules="rules" :visible="show" custom-class="um-config-dialog" center> <el-dialog @close="cancel()" title="解密设定" :visible="show" custom-class="um-config-dialog" center>
<el-form ref="form" status-icon :model="form" label-width="0"> <el-form ref="form" :rules="rules" status-icon :model="form" label-width="0">
<section> <section>
<label> <label>
<span> <span>
@ -74,7 +74,7 @@ function validateJooxUUID(rule, value, callback) {
} }
const rules = { const rules = {
jooxUUID: { validator: validateJooxUUID, trigger: 'blur' }, jooxUUID: { validator: validateJooxUUID, trigger: 'change' },
}; };
export default { export default {

Loading…
Cancel
Save