This commit is contained in:
Fine 2025-05-16 15:47:27 +08:00
parent 48bccba3d6
commit b0f21d4d14
3 changed files with 6 additions and 6 deletions

View File

@ -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}}`;

View File

@ -40,7 +40,7 @@ limitations under the License. -->
</el-breadcrumb>
<div class="title" v-else>{{ pageTitle }}</div>
<div class="app-config">
<span class="red" v-show="timeRange">{{ t("timeTips") }}</span>
<span class="red" v-show="showTimeRangeTips">{{ t("timeTips") }}</span>
<TimePicker
:value="[appStore.durationRow.start, appStore.durationRow.end]"
:maxRange="appStore.maxRange"
@ -103,7 +103,7 @@ limitations under the License. -->
const dashboardStore = useDashboardStore();
const route = useRoute();
const pathNames = ref<{ path?: string; name: string; selected: boolean }[][]>([]);
const timeRange = ref<number>(0);
const showTimeRangeTips = ref<boolean>(false);
const pageTitle = ref<string>("");
const theme = ref<boolean>(true);
const themeSwitchRef = ref<HTMLElement>();
@ -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));

View File

@ -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;