From 943a628dc91ed81f5e1fd96d927a7508e34e2c2c Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Thu, 25 Jul 2019 16:26:25 +0800 Subject: [PATCH] clear --- public/react/src/modules/user/account/AccountBasicEdit.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/react/src/modules/user/account/AccountBasicEdit.js b/public/react/src/modules/user/account/AccountBasicEdit.js index 1458862a1..24674a3ce 100644 --- a/public/react/src/modules/user/account/AccountBasicEdit.js +++ b/public/react/src/modules/user/account/AccountBasicEdit.js @@ -274,6 +274,11 @@ class AccountBasic extends Component { return item.name == e; }); if (!arr[0]) { + if (!e) { + this.setState({ + filterSchoolList: [] + }) + } // 没找到学校,清空部门 this.setState({ departments: [],