fix
Showing
1 changed file
with
5 additions
and
5 deletions
| ... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment