fix: instance topology

This commit is contained in:
Fine 2022-12-17 15:51:17 +08:00
parent 1285335de9
commit 237f0e2851
2 changed files with 3 additions and 4 deletions

View File

@ -192,12 +192,12 @@ export const topologyStore = defineStore({
},
async getInstanceTopology() {
const { currentService, currentDestService } = useSelectorStore();
const serverServiceId = currentService && currentService.id;
const clientServiceId = currentDestService && currentDestService.id;
const serverServiceId = (currentService && currentService.id) || "";
const clientServiceId = (currentDestService && currentDestService.id) || "";
const duration = useAppStoreWithOut().durationTime;
if (!(serverServiceId && clientServiceId)) {
return;
}
const duration = useAppStoreWithOut().durationTime;
const res: AxiosResponse = await graphql.query("getInstanceTopology").params({
clientServiceId,
serverServiceId,

View File

@ -245,7 +245,6 @@ limitations under the License. -->
watch(
() => [selectorStore.currentService, selectorStore.currentDestService],
() => {
console.log(selectorStore.currentService);
if (dashboardStore.entity !== EntityType[4].value) {
return;
}