首屏加载

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() {
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)
})
},
}