fix: form validation on input change

(cherry picked from commit c20ce54dacfe4ccc31974a9a9092938ed47db4bb)
This commit is contained in:
鲁树人 2021-12-22 13:28:38 +00:00
parent 290986e546
commit de1c686231

View File

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