Commit 7868772c by zhaochengxiang

bug fix

parent 07f204fd
......@@ -27,7 +27,7 @@ const AssetBrowse = (props) => {
const { centerId, expandId } = nodeParams;
const onTreeSelect = (value, type) => {
setNodeParams({ centerId: value||'', expandId: '', nodeType: type });
setNodeParams({ centerId: value, expandId: '', nodeType: type });
}
const treeToggleClick = () => {
......
......@@ -757,8 +757,11 @@ const AssetManageTree = (props) => {
setTemplateType(val)
LocalStorage.set(`templateType-${appId}`, val);
setCurrentDirId();
onSelect?.(null, null);
setTimeout(() => {
onSelect?.('', '');
getAllDirectoryAsTree(false)
}, 100)
}}
style={{ width: 65 }}
>
......
......@@ -581,8 +581,11 @@ const AssetTree = (props) => {
setTemplateType(val)
LocalStorage.set(`templateType-${appId}`, val);
setCurrentDirId();
onSelect?.(null, null);
setTimeout(() => {
onSelect?.('', '');
getAllDirectoryAsTree(false)
}, 100)
}}
style={{ width: 65 }}
>
......
......@@ -32,7 +32,7 @@ const AssetManage = (props) => {
const { assetId, assetDirId } = assetParams;
const onTreeSelect = (value, type, level) => {
setNodeId(value||'');
setNodeId(value);
setNodeType(type);
setNodeLevel(level);
......
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