Commit 260fff65 by zhaochengxiang

bug fix

parent 13956d86
...@@ -844,11 +844,8 @@ const AssetManageTree = (props) => { ...@@ -844,11 +844,8 @@ const AssetManageTree = (props) => {
} }
setCurrentDirId(); setCurrentDirId();
onSelect?.(null, null, null, false);
setTimeout(() => {
onSelect?.('', '', null, false);
getAllDirectoryAsTree(true) getAllDirectoryAsTree(true)
}, 100)
}} }}
style={{ width: 100 }} style={{ width: 100 }}
> >
......
...@@ -286,7 +286,7 @@ const AssetTable = (props) => { ...@@ -286,7 +286,7 @@ const AssetTable = (props) => {
}, [timestamp]) }, [timestamp])
useEffect(() => { useEffect(() => {
if (reference !== AssetRecycleReference && nodeId && nodeType) { if (reference !== AssetRecycleReference && nodeId) {
getFilterElementsGroupThenGetDataAssets(); getFilterElementsGroupThenGetDataAssets();
} }
//eslint-disable-next-line react-hooks/exhaustive-deps //eslint-disable-next-line react-hooks/exhaustive-deps
......
...@@ -624,11 +624,13 @@ const AssetTree = (props) => { ...@@ -624,11 +624,13 @@ const AssetTree = (props) => {
LocalStorage.set(`templateType-${appId}`, val); LocalStorage.set(`templateType-${appId}`, val);
listSubject.next({ msg: 'templateChange' }); listSubject.next({ msg: 'templateChange' });
setCurrentDirId(); setCurrentDirId();
onSelect?.(null, null, false);
setTimeout(() => {
onSelect?.('', '', false);
getAllDirectoryAsTree(true) getAllDirectoryAsTree(true)
}, 100)
// onSelect?.(null, null, false);
// setTimeout(() => {
// onSelect?.('', '', false);
// getAllDirectoryAsTree(true)
// }, 100)
}} }}
style={{ width: 100 }} style={{ width: 100 }}
> >
......
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