Commit f16b36d3 by zhaochengxiang

bug fix

parent f93e5af3
...@@ -375,6 +375,8 @@ const ModelTree = (props) => { ...@@ -375,6 +375,8 @@ const ModelTree = (props) => {
setViewSelectedKey(key); setViewSelectedKey(key);
setSearchKeyword(''); setSearchKeyword('');
setOptions([]); setOptions([]);
setItem();
setPrevItem();
onViewChange && onViewChange(key); onViewChange && onViewChange(key);
if (key === 'dir') { if (key === 'dir') {
......
...@@ -229,7 +229,7 @@ class Model extends React.Component { ...@@ -229,7 +229,7 @@ class Model extends React.Component {
} }
onViewChange = (value) => { onViewChange = (value) => {
this.setState({ currentView: value, catalogId: '' }); this.setState({ currentView: value, keyword: '', catalogId: '' });
} }
onModelStateChange = (value) => { onModelStateChange = (value) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment