From b0f21d4d140f758e7fd003508936b935cad1fa01 Mon Sep 17 00:00:00 2001 From: Fine Date: Fri, 16 May 2025 15:47:27 +0800 Subject: [PATCH] fix --- src/graphql/query/trace.ts | 2 +- src/layout/components/NavBar.vue | 8 ++++---- src/store/modules/app.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/graphql/query/trace.ts b/src/graphql/query/trace.ts index 034854f8..77b1dfe3 100644 --- a/src/graphql/query/trace.ts +++ b/src/graphql/query/trace.ts @@ -19,7 +19,7 @@ import { Traces, TraceSpans, TraceTagKeys, TraceTagValues, TraceSpansFromColdSta export const queryTraces = `query queryTraces(${Traces.variable}) {${Traces.query}}`; -export const querySpans = `query queryTrace(${TraceSpans.variable}) {${TraceSpans.query}}`; +export const querySpans = `query querySpans(${TraceSpans.variable}) {${TraceSpans.query}}`; export const queryTraceTagKeys = `query queryTraceTagKeys(${TraceTagKeys.variable}) {${TraceTagKeys.query}}`; diff --git a/src/layout/components/NavBar.vue b/src/layout/components/NavBar.vue index 942f4ada..00e99c41 100644 --- a/src/layout/components/NavBar.vue +++ b/src/layout/components/NavBar.vue @@ -40,7 +40,7 @@ limitations under the License. -->
{{ pageTitle }}
- {{ t("timeTips") }} + {{ t("timeTips") }} const dashboardStore = useDashboardStore(); const route = useRoute(); const pathNames = ref<{ path?: string; name: string; selected: boolean }[][]>([]); - const timeRange = ref(0); + const showTimeRangeTips = ref(false); const pageTitle = ref(""); const theme = ref(true); const themeSwitchRef = ref(); @@ -215,8 +215,8 @@ limitations under the License. --> } function changeTimeRange(val: Date[]) { - timeRange.value = val[1].getTime() - val[0].getTime() > 60 * 24 * 60 * 60 * 1000 ? 1 : 0; - if (timeRange.value) { + showTimeRangeTips.value = val[1].getTime() - val[0].getTime() > 60 * 24 * 60 * 60 * 1000; + if (showTimeRangeTips.value) { return; } appStore.setDuration(timeFormat(val)); diff --git a/src/store/modules/app.ts b/src/store/modules/app.ts index 6479dcad..5cfc40af 100644 --- a/src/store/modules/app.ts +++ b/src/store/modules/app.ts @@ -25,7 +25,7 @@ import type { MenuOptions, SubItem, MetricsTTL, RecordsTTL } from "@/types/app"; import { Themes } from "@/constants/data"; /*global Nullable*/ interface AppState { - durationRow: Recordable; + durationRow: Duration; utc: string; utcHour: number; utcMin: number;