This commit is contained in:
Fine 2025-05-12 11:42:27 +08:00
parent de2b9a4069
commit f0e0156f7c

View File

@ -120,6 +120,7 @@ limitations under the License. -->
resetDuration(); resetDuration();
getVersion(); getVersion();
getNavPaths(); getNavPaths();
getMetricsTTL();
function changeTheme() { function changeTheme() {
const root = document.documentElement; const root = document.documentElement;
@ -209,6 +210,13 @@ limitations under the License. -->
appStore.setDuration(timeFormat(val)); 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() { function getNavPaths() {
pathNames.value = []; pathNames.value = [];
pageTitle.value = ""; pageTitle.value = "";