fix:数据库目录测试环境不显示
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment