02f8342c by xukangle

fix

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