From 129170bfe699cfaf7f6143ffba93c33f317fd558 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 01 十二月 2023 11:00:39 +0800
Subject: [PATCH] 2023-12-01

---
 src/components/normalform/modalform/index.jsx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components/normalform/modalform/index.jsx b/src/components/normalform/modalform/index.jsx
index 33b243c..a277d8a 100644
--- a/src/components/normalform/modalform/index.jsx
+++ b/src/components/normalform/modalform/index.jsx
@@ -72,7 +72,7 @@
           required: item.required,
           message: item.label + '涓嶅彲涓虹┖!'
         }, {
-          validator: (rule, value, callback) => this.handleConfirmPassword(rule, value, callback, item)
+          validator: (rule, value, callback) => this.checkNumber(rule, value, callback, item)
         }]
       } else if (item.type === 'textarea') {
         item.rules = [
@@ -164,7 +164,7 @@
     this.setState({ formlist })
   }
 
-  handleConfirmPassword = (rule, value, callback, item) => {
+  checkNumber = (rule, value, callback, item) => {
     let val = parseFloat(value)
 
     if (!isNaN(val)) {

--
Gitblit v1.8.0