首屏加载

This commit is contained in:
aixianling
2024-07-02 11:50:15 +08:00
parent 8320225e95
commit b942555515

View File

@@ -21,12 +21,14 @@ export default {
created() { created() {
this.getOptions().then(() => { this.getOptions().then(() => {
const {dayjs} = window const {dayjs} = window
this.form = { setTimeout(() => {
compareDate: dayjs().subtract(1, "day").format("YYYYMMDD"), const compareDate = dayjs().subtract(1, "day").format("YYYYMMDD"),
currentDate: dayjs().format("YYYYMMDD"), currentDate = dayjs().format("YYYYMMDD"),
hourNum: new Date().getHours(), hourNum = new Date().getHours(),
groupCodeList: this.options?.[0].value groupCodeList = this.options?.[0].value
} this.form = {compareDate, currentDate, hourNum, groupCodeList}
this.$set(this.$marketBoard, 'search', {compareDate, currentDate, hourNum, groupCodeList: [groupCodeList]})
}, 500)
}) })
}, },
} }