From a1f6a0464a0546eef78ba2504bfa1a432eec22c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E9=A1=BA=E5=BC=BA?= <978987373@qq.com> Date: Tue, 3 Jun 2025 10:49:27 +0800 Subject: [PATCH] test in pro env (#7875) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 小强 --- frontend/src/pages/lib-content-view/lib-content-view.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/pages/lib-content-view/lib-content-view.js b/frontend/src/pages/lib-content-view/lib-content-view.js index 3a8e3fb31e..9d738b42e9 100644 --- a/frontend/src/pages/lib-content-view/lib-content-view.js +++ b/frontend/src/pages/lib-content-view/lib-content-view.js @@ -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 });