fix: form validation on input change

(cherry picked from commit c20ce54dacfe4ccc31974a9a9092938ed47db4bb)
This commit is contained in:
鲁树人 2021-12-22 13:28:38 +00:00 committed by MengYX
parent 1c4185750a
commit 302f422a5f
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604

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 {