mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-15 04:09:14 +00:00
fix: Instance Relation and Endpoint Relation dashboards show up (#209)
This commit is contained in:
@@ -105,7 +105,7 @@ limitations under the License. -->
|
||||
window.addEventListener("resize", resize);
|
||||
});
|
||||
|
||||
async function loadTopology(id: string) {
|
||||
async function loadTopology(id?: string) {
|
||||
loading.value = true;
|
||||
const resp = await getTopology(id);
|
||||
loading.value = false;
|
||||
@@ -212,7 +212,7 @@ limitations under the License. -->
|
||||
loadTopology(selectorStore.currentPod.id);
|
||||
}
|
||||
|
||||
async function getTopology(id: string) {
|
||||
async function getTopology(id?: string) {
|
||||
let resp;
|
||||
switch (dashboardStore.entity) {
|
||||
case EntityType[2].value:
|
||||
@@ -242,6 +242,17 @@ limitations under the License. -->
|
||||
topologyStore.setLink(null);
|
||||
},
|
||||
);
|
||||
watch(
|
||||
() => [selectorStore.currentService, selectorStore.currentDestService],
|
||||
() => {
|
||||
if (dashboardStore.entity !== EntityType[4].value) {
|
||||
return;
|
||||
}
|
||||
loadTopology();
|
||||
topologyStore.setNode(null);
|
||||
topologyStore.setLink(null);
|
||||
},
|
||||
);
|
||||
watch(
|
||||
() => appStore.durationTime,
|
||||
() => {
|
||||
|
Reference in New Issue
Block a user