Skip to content

Commit 187584c

Browse files
committed
获取服务列表、指标列表等展示数据的api
1 parent e946061 commit 187584c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/views/HomeView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ const edges = ref<any[]>([])
814814
815815
// 计算属性:将可发布版本数据转换为下拉框格式
816816
const availableVersionOptions = computed(() => {
817-
if (!currentServiceAvailableVersions.value) {
817+
if (!currentServiceAvailableVersions.value || !currentServiceAvailableVersions.value.items) {
818818
return []
819819
}
820820
@@ -826,7 +826,7 @@ const availableVersionOptions = computed(() => {
826826
827827
// 计算属性:将发布计划数据转换为前端显示格式
828828
const deploymentPlansForDisplay = computed(() => {
829-
if (!currentServiceDeploymentPlans.value) {
829+
if (!currentServiceDeploymentPlans.value || !currentServiceDeploymentPlans.value.items) {
830830
return []
831831
}
832832

0 commit comments

Comments
 (0)