diff --git a/src/store/modules/dashboard.ts b/src/store/modules/dashboard.ts index 2c19e448..ab7c3e2f 100644 --- a/src/store/modules/dashboard.ts +++ b/src/store/modules/dashboard.ts @@ -37,6 +37,7 @@ interface DashboardState { activedGridItem: string; durationTime: Duration; selectorStore: any; + showTopology: boolean; fullView: boolean; currentTabItems: LayoutConfig[]; showTraceTools: boolean; @@ -57,6 +58,7 @@ export const dashboardStore = defineStore({ activedGridItem: "", durationTime: useAppStoreWithOut().durationTime, selectorStore: useSelectorStore(), + showTopology: false, showLogTools: false, showTraceTools: false, fullView: false, @@ -268,6 +270,9 @@ export const dashboardStore = defineStore({ setLogTools(show: boolean) { this.showLogTools = show; }, + setTopology(show: boolean) { + this.showTopology = show; + }, setConfigs(param: { [key: string]: unknown }) { const actived = this.activedGridItem.split("-"); const index = this.layout.findIndex(