From c2b7f6f01ccbdf005530eede4966ccc9d43ece46 Mon Sep 17 00:00:00 2001 From: fanxb Date: Wed, 20 Nov 2019 22:46:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9D=20Fix:=20[web]:=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E7=AB=AF=E7=82=B9=E5=87=BB=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=EF=BC=8C=E4=BB=A5=E5=8F=8A=E4=B9=A6=E7=AD=BE?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E5=AD=97=E7=AC=A6=E6=95=B0=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/components/Search/index.jsx | 2 +- front/src/pages/manage/OverView/AddModal.jsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/front/src/components/Search/index.jsx b/front/src/components/Search/index.jsx index f4c7169..10aa5ae 100644 --- a/front/src/components/Search/index.jsx +++ b/front/src/components/Search/index.jsx @@ -171,7 +171,7 @@ class Search extends React.Component { onChange={this.contentChange.bind(this)} onKeyDown={this.keyUp.bind(this)} onFocus={() => this.setState({ isFocus: true })} - onBlur={() => setTimeout(() => this.setState({ isFocus: false }), 200)} + onBlur={() => setTimeout(() => this.setState({ isFocus: false }), 600)} /> {this.renderResults()} diff --git a/front/src/pages/manage/OverView/AddModal.jsx b/front/src/pages/manage/OverView/AddModal.jsx index 63cb36d..8b67d2a 100644 --- a/front/src/pages/manage/OverView/AddModal.jsx +++ b/front/src/pages/manage/OverView/AddModal.jsx @@ -21,8 +21,8 @@ function mapDispatchToProps(dispatch) { const reg = { name: { - reg: /^.{1,40}$/, - text: "名称字符数为1-40" + reg: /^.{1,200}$/, + text: "名称字符数为1-200" }, url: { reg: /^.{1,5000}$/, @@ -69,7 +69,7 @@ class AddModal extends React.Component { changeValue(e) { const name = e.target.name; - const value = e.target.value.trim(); + const value = e.target.value this.checkValue(name, value); this.setState({ [name]: value }); }