1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-24 04:48:03 +00:00

test in pro env (#7875)

Co-authored-by: 小强 <shuntian@Mac.lan>
This commit is contained in:
杨顺强
2025-06-03 10:49:27 +08:00
committed by GitHub
parent c066786201
commit a1f6a0464a

View File

@@ -1728,6 +1728,7 @@ class LibContentView extends React.Component {
direntList: direntObject.type === 'dir' ? [dirent, ...prevState.direntList] : [...prevState.direntList, dirent]
}));
console.log('dev test: ', this.state.isTreePanelShown);
if (this.state.isTreePanelShown) {
this.addNodeToTree(dirent.name, this.state.path, dirent.type);
}
@@ -2028,6 +2029,7 @@ class LibContentView extends React.Component {
};
addNodeToTree = (name, parentPath, type) => {
console.log(name, parentPath, type);
let node = this.createTreeNode(name, type);
let tree = treeHelper.addNodeToParentByPath(this.state.treeData, node, parentPath);
this.setState({ treeData: tree });