修复调试运行时文件路径

This commit is contained in:
whyour
2021-11-23 23:36:43 +08:00
parent 5a6d3739d4
commit 2f5e946979
4 changed files with 55 additions and 39 deletions
+3 -3
View File
@@ -116,12 +116,12 @@ const Script = ({ headerStyle, isPhone, theme, socketMessage }: any) => {
node: {
title: s,
value: s,
key: p ? `${p}-${s}` : s,
key: p ? `${p}/${s}` : s,
parent: p,
},
};
setExpandedKeys([p]);
onTreeSelect([`${p}-${s}`], obj);
onTreeSelect([`${p}/${s}`], obj);
}
};
@@ -525,7 +525,7 @@ const Script = ({ headerStyle, isPhone, theme, socketMessage }: any) => {
<EditModal
visible={isLogModalVisible}
treeData={data}
currentFile={select}
currentNode={currentNode}
content={value}
socketMessage={socketMessage}
handleCancel={() => {