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 }); }