mirror of
https://git.unlock-music.dev/um/web.git
synced 2024-12-29 08:25:02 +08:00
fix: form validation on input change
(cherry picked from commit c20ce54dacfe4ccc31974a9a9092938ed47db4bb)
This commit is contained in:
parent
290986e546
commit
de1c686231
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user