From c5eb8215dc09c365534b80d0d03cb3cabfaf66d0 Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Sat, 19 Feb 2022 22:47:45 +0800 Subject: [PATCH] fix: update default depth --- .../dashboard/configuration/graph-styles/TopologyItem.vue | 3 ++- .../dashboard/related/topology/components/PodTopology.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/configuration/graph-styles/TopologyItem.vue b/src/views/dashboard/configuration/graph-styles/TopologyItem.vue index fa0305d2..9764b90b 100644 --- a/src/views/dashboard/configuration/graph-styles/TopologyItem.vue +++ b/src/views/dashboard/configuration/graph-styles/TopologyItem.vue @@ -69,7 +69,8 @@ limitations under the License. -->
{{ t("defaultDepth") }} (false); const height = ref(document.body.clientHeight - 150); const width = ref(document.body.clientWidth - 40); const showSettings = ref(false); -const depth = ref("2"); const settings = ref({}); const operationsPos = reactive<{ x: number; y: number }>({ x: NaN, y: NaN }); +const depth = ref(topologyStore.defaultDepth); const items = [ { id: "inspect", title: "Inspect", func: inspect }, { id: "dashboard", title: "View Dashboard", func: goDashboard },