Commit 7868772c by zhaochengxiang

bug fix

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