From 14aad303b0b831c4c4946fcad2907d7b75cd2375 Mon Sep 17 00:00:00 2001 From: CJL6015 <1253368419@qq.com> Date: Sat, 29 Nov 2025 11:31:30 +0800 Subject: [PATCH] fix: update date initialization for current and last month in train model --- src/views/model/train/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/model/train/index.vue b/src/views/model/train/index.vue index 5522c0e..6c09b35 100644 --- a/src/views/model/train/index.vue +++ b/src/views/model/train/index.vue @@ -98,8 +98,8 @@ export default defineComponent({ const activeKey = ref('1') type RangeValue = [Dayjs, Dayjs] - const currentDate: Dayjs = dayjs() - const lastMonthDate: Dayjs = currentDate.subtract(1, 'day') + const currentDate: Dayjs = dayjs('2023-10-29 00:00:00') + const lastMonthDate: Dayjs = dayjs('2023-10-28 16:00:00') const rangeValue: RangeValue = [ lastMonthDate, currentDate, @@ -141,7 +141,7 @@ export default defineComponent({ async function getTestData() { const params = { - Model_id: 530, + Model_id: id, version: model.value?.Cur_Version ? model.value?.Cur_Version : 'v-test', Test_Data: { time: historyTime.value