a0632be9 by xukangle

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

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