From b942555515ca92f7e0ae1d81b561ed553f5482c1 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 2 Jul 2024 11:50:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E5=B1=8F=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AppMarketBoardFilter.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/AppMarketBoardFilter.vue b/src/views/AppMarketBoardFilter.vue index 6828281..ae970b7 100644 --- a/src/views/AppMarketBoardFilter.vue +++ b/src/views/AppMarketBoardFilter.vue @@ -21,12 +21,14 @@ export default { created() { this.getOptions().then(() => { const {dayjs} = window - this.form = { - compareDate: dayjs().subtract(1, "day").format("YYYYMMDD"), - currentDate: dayjs().format("YYYYMMDD"), - hourNum: new Date().getHours(), - groupCodeList: this.options?.[0].value - } + setTimeout(() => { + const compareDate = dayjs().subtract(1, "day").format("YYYYMMDD"), + currentDate = dayjs().format("YYYYMMDD"), + hourNum = new Date().getHours(), + groupCodeList = this.options?.[0].value + this.form = {compareDate, currentDate, hourNum, groupCodeList} + this.$set(this.$marketBoard, 'search', {compareDate, currentDate, hourNum, groupCodeList: [groupCodeList]}) + }, 500) }) }, }