a0632be9 by xukangle

fix:数据库目录测试环境不显示

1 parent e4eac53e
...@@ -842,6 +842,7 @@ const getDataBaseTreeData = async () => { ...@@ -842,6 +842,7 @@ const getDataBaseTreeData = async () => {
842 const res: any = await getDbDirTreeList({}); 842 const res: any = await getDbDirTreeList({});
843 if (res.code == proxy.$passCode) { 843 if (res.code == proxy.$passCode) {
844 const dataArray = [res.data]; 844 const dataArray = [res.data];
845 console.log('dataArray', dataArray, typeof dataArray);
845 // 遍历并添加 GUIDs 846 // 遍历并添加 GUIDs
846 dataArray.forEach(addGuids); 847 dataArray.forEach(addGuids);
847 // 更新到绑定的响应式数据 848 // 更新到绑定的响应式数据
...@@ -861,7 +862,7 @@ const addGuids = (node) => { ...@@ -861,7 +862,7 @@ const addGuids = (node) => {
861 node.guid = node.tableGuid; 862 node.guid = node.tableGuid;
862 node.name = node.tableChName; 863 node.name = node.tableChName;
863 } else { 864 } else {
864 node.guid = crypto.randomUUID(); 865 node.guid = '1';
865 node.name = node.cgDirName; 866 node.name = node.cgDirName;
866 } 867 }
867 868
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!