Skip to content

Commit 1ae9c48

Browse files
committed
fix: define validator function with proper variable declaration
1 parent a1d4fd5 commit 1ae9c48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/src/components/dynamics-form/FormItem.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ const errMsg = computed(() => {
133133
*/
134134
const to_rule = (rule: any) => {
135135
if (rule.validator) {
136-
const validator = (rule: any, value: string, callback: any) => {}
136+
// eslint-disable-next-line prefer-const, @typescript-eslint/no-unused-vars
137+
let validator = (rule: any, value: string, callback: any) => {}
137138
eval(rule.validator)
138139
return { ...rule, validator }
139140
}

0 commit comments

Comments
 (0)