02f8342c by xukangle

fix

1 parent a47b0660
...@@ -1313,15 +1313,15 @@ const getDataBaseTreeData = async () => { ...@@ -1313,15 +1313,15 @@ const getDataBaseTreeData = async () => {
1313 dataBaseTreeInfo.value.loading = false; 1313 dataBaseTreeInfo.value.loading = false;
1314 return; 1314 return;
1315 } 1315 }
1316 dataBaseTreeInfo.value.expandedKey.push(dataArray[0].guid); 1316 dataBaseTreeInfo.value.expandedKey.push(dataArray[0]?.guid);
1317 dataBaseTreeInfo.value.currentNodeKey = dataArray[0].guid; 1317 dataBaseTreeInfo.value.currentNodeKey = dataArray[0]?.guid;
1318 dataBaseGuid.value = dataArray[0].databaseGuid; 1318 dataBaseGuid.value = dataArray[0].databaseGuid;
1319 currentDatabasePath.value = [dataArray[0].name]; 1319 currentDatabasePath.value = [dataArray[0]?.name];
1320 selectedA.value = dataArray[0].databaseGuid; 1320 selectedA.value = dataArray[0].databaseGuid;
1321 if (dataArray[0].dicType === 1) { 1321 if (dataArray[0]?.dicType === 1) {
1322 isShowCreateBtn.value = true; 1322 isShowCreateBtn.value = true;
1323 } 1323 }
1324 if (dataArray[0].dicType === 2) { 1324 if (dataArray[0]?.dicType === 2) {
1325 isShowCreateBtn.value = false; 1325 isShowCreateBtn.value = false;
1326 } 1326 }
1327 1327
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!