Commit f16b36d3 by zhaochengxiang

bug fix

parent f93e5af3
......@@ -375,6 +375,8 @@ const ModelTree = (props) => {
setViewSelectedKey(key);
setSearchKeyword('');
setOptions([]);
setItem();
setPrevItem();
onViewChange && onViewChange(key);
if (key === 'dir') {
......
......@@ -229,7 +229,7 @@ class Model extends React.Component {
}
onViewChange = (value) => {
this.setState({ currentView: value, catalogId: '' });
this.setState({ currentView: value, keyword: '', catalogId: '' });
}
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