From c0359dc57d1a4046176a9f92442fb55b839014eb Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Mon, 5 Aug 2019 18:01:44 +0800 Subject: [PATCH] 30 --- public/react/src/modules/paths/PathNew.js | 2 +- .../src/modules/user/account/AccountBasicEdit.js | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/public/react/src/modules/paths/PathNew.js b/public/react/src/modules/paths/PathNew.js index 3acad7eed..04e391732 100644 --- a/public/react/src/modules/paths/PathNew.js +++ b/public/react/src/modules/paths/PathNew.js @@ -71,7 +71,7 @@ function create_editorMD(id, width, high, placeholder, imageUrl,initValue, callb } }); // 一个页面有多个md时,onload方法只执行了一次 - window.md_elocalStorage(editorName, `MemoQuestion_${id}`, `${id}`); + // window.md_elocalStorage(editorName, `MemoQuestion_${id}`, `${id}`); return editorName; } diff --git a/public/react/src/modules/user/account/AccountBasicEdit.js b/public/react/src/modules/user/account/AccountBasicEdit.js index 824e39438..ed55942c0 100644 --- a/public/react/src/modules/user/account/AccountBasicEdit.js +++ b/public/react/src/modules/user/account/AccountBasicEdit.js @@ -126,7 +126,7 @@ class AccountBasic extends Component { // 输入昵称时change剩余的字数 changeNickName=(e)=>{ - let num= 20 - parseInt(e.target.value.length); + let num= 30 - parseInt(e.target.value.length); this.setState({ nameLength:num < 0 ? 0 : num }) @@ -394,11 +394,11 @@ class AccountBasic extends Component { } } checkNameLength = (rule, value, callback) => { - if (value && value.length <= 10) { + if (value && value.length <= 30) { callback(); return; } - callback('请输入真实姓名,最大限制10个字符'); + callback('请输入真实姓名,最大限制30个字符'); } render() { @@ -498,8 +498,8 @@ class AccountBasic extends Component { message: '请输入您的昵称', }], })( - {String(nameLength)}/20 + {String(nameLength)}/30 }> )} @@ -512,11 +512,11 @@ class AccountBasic extends Component { rules: [{ // initialValue: this.state.cityDefaultValue, required: true, - message: '请输入真实姓名,最大限制10个字符', + message: '请输入真实姓名,最大限制30个字符', validator: this.checkNameLength }], })( - this.showOrHide(showRealName)}> }>