Commit 444a3674 by zhaochengxiang

bug fix

parent f89ef7b8
......@@ -897,11 +897,7 @@ const AssetManageTree = (props) => {
setTemplateType(val)
LocalStorage.set(`templateType-${appId}`, val);
setCurrentDirId();
onSelect?.(null, null);
setTimeout(() => {
onSelect?.('', '');
getAllDirectoryAsTree(true)
}, 100)
getAllDirectoryAsTree(true)
}}
style={{ width: 100 }}
>
......
......@@ -625,12 +625,6 @@ const AssetTree = (props) => {
listSubject.next({ msg: 'templateChange' });
setCurrentDirId();
getAllDirectoryAsTree(true)
// onSelect?.(null, null, false);
// setTimeout(() => {
// onSelect?.('', '', false);
// getAllDirectoryAsTree(true)
// }, 100)
}}
style={{ width: 100 }}
>
......
......@@ -32,10 +32,8 @@ const AssetManage = (props) => {
const { assetId, assetDirId } = assetParams;
const onTreeSelect = (value, type, level, allowdLoadDataAsset) => {
console.log('value', value)
console.log('type', type)
setNodeId(value);
setNodeType(type);
setNodeId(value);
setNodeLevel(level);
setNodeAllowdLoadDataAsset(allowdLoadDataAsset)
}
......
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