This commit is contained in:
Qiuxia Fan 2022-03-30 15:59:13 +08:00
parent 46136ab3a8
commit 408d9324a5
3 changed files with 4 additions and 3 deletions

View File

@ -50,7 +50,9 @@ const props = defineProps({
});
const available = computed(
() =>
props.option.series && props.option.series[0] && props.option.series[0].data
Array.isArray(props.option.series) &&
props.option.series[0] &&
props.option.series[0].data
);
onMounted(async () => {
await setOptions(props.option);

View File

@ -236,7 +236,7 @@ export function useQueryPodsMetrics(
duration: appStore.durationTime,
};
const variables: string[] = [`$duration: Duration!`];
const { currentService } = selectorStore;
const currentService = selectorStore.currentService || {};
const fragmentList = pods.map(
(
d: (Instance | Endpoint | Service) & { normal: boolean },

View File

@ -61,7 +61,6 @@ const props = defineProps({
},
intervalTime: { type: Array as PropType<string[]>, default: () => [] },
});
console.log(props.config.color);
const key = computed(() => Object.keys(props.data)[0] || "");
const available = computed(
() =>