fix graph (#55)

This commit is contained in:
Fine0830
2022-04-02 15:18:44 +08:00
committed by GitHub
parent f19bcc856d
commit 8d87777832
2 changed files with 10 additions and 1 deletions

View File

@@ -149,6 +149,11 @@ const depth = ref<number>(graphConfig.value.depth || 2);
onMounted(async () => {
loading.value = true;
const json = await selectorStore.fetchServices(dashboardStore.layerId);
if (json.errors) {
ElMessage.error(json.errors);
return;
}
const resp = await getTopology();
loading.value = false;
if (resp && resp.errors) {