From f0e0156f7c37d6dffb19c3ebb4463ab73d6cdaae Mon Sep 17 00:00:00 2001 From: Fine Date: Mon, 12 May 2025 11:42:27 +0800 Subject: [PATCH] init --- src/layout/components/NavBar.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/layout/components/NavBar.vue b/src/layout/components/NavBar.vue index 3b321246..6de1580f 100644 --- a/src/layout/components/NavBar.vue +++ b/src/layout/components/NavBar.vue @@ -120,6 +120,7 @@ limitations under the License. --> resetDuration(); getVersion(); getNavPaths(); + getMetricsTTL(); function changeTheme() { const root = document.documentElement; @@ -209,6 +210,13 @@ limitations under the License. --> appStore.setDuration(timeFormat(val)); } + async function getMetricsTTL() { + const resp = await appStore.queryMetricsTTL(); + // const gap = appStore.duration.end.getTime() - appStore.duration.start.getTime(); + // const dates: Date[] = [new Date(new Date().getTime() - gap), new Date()]; + // appStore.setDuration(timeFormat(dates)); + } + function getNavPaths() { pathNames.value = []; pageTitle.value = "";