From 2cf9642cfa0b17349a4bdd0bc992f946a446c39d Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Mon, 25 Sep 2023 14:26:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E8=AF=86check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Information/Pages/apply.jsx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/forge/Information/Pages/apply.jsx b/src/forge/Information/Pages/apply.jsx index 9f3515eab..5f020e6eb 100644 --- a/src/forge/Information/Pages/apply.jsx +++ b/src/forge/Information/Pages/apply.jsx @@ -2,7 +2,7 @@ import React, { useEffect } from 'react'; import { Form , Input , Row , Col, Button } from 'antd'; import '../index.scss'; import { postCreateZone } from '../api'; -import cookie from 'react-cookies'; +import axios from 'axios'; const { TextArea } = Input; const phonereg = /^([1][3456789])\d{9}$/ @@ -45,6 +45,17 @@ function Apply(props){ callback(); } + function checkId(rule,value,callback){ + value ? axios.post(`/accounts/check_keywords`, { + text:value + }).then(response => { + if(response && response.data.data===false){ + callback("与系统标识重复,请更改标识"); + } + callback(); + }):callback(); + } + return(