feat: implement the Status API on Settings page (#470)

This commit is contained in:
Fine0830
2025-05-30 12:53:22 +08:00
committed by GitHub
parent a28972bc5c
commit 7dcc67f455
38 changed files with 775 additions and 236 deletions

View File

@@ -176,7 +176,15 @@ limitations under the License. -->
category: { value: "ALL", label: "All" },
});
const maxRange = computed(() =>
getMaxRange(appStore.coldStageMode ? appStore.recordsTTL.coldSuperDataset : appStore.recordsTTL.superDataset),
getMaxRange(
appStore.coldStageMode
? isBrowser.value
? appStore.recordsTTL.coldBrowserErrorLog
: appStore.recordsTTL.coldLog
: isBrowser.value
? appStore.recordsTTL.browserErrorLog
: appStore.recordsTTL.log,
),
);
if (props.needQuery) {
init();

View File

@@ -132,7 +132,7 @@ limitations under the License. -->
});
const durationRow = ref<Duration>(InitializationDurationRow);
const maxRange = computed(() =>
getMaxRange(appStore.coldStageMode ? appStore.recordsTTL.coldSuperDataset : appStore.recordsTTL.superDataset),
getMaxRange(appStore.coldStageMode ? appStore.recordsTTL.coldTrace : appStore.recordsTTL.trace),
);
if (filters.queryOrder) {
traceStore.setTraceCondition({