refactor(src/views): 更新 AppMultipleStoreBoardFilter 组件中的日期逻辑
- 将获取当前日期的逻辑从"减去7天"修改为"当前日期" - 通过注释保留原始逻辑以便参考
This commit is contained in:
@@ -41,7 +41,8 @@ export default {
|
||||
setTimeout(() => {
|
||||
const {dayjs} = window
|
||||
const hourNum = new Date().getHours()+1, groupCodeList = "", interval = 60000
|
||||
const currentDate = dayjs().subtract(7, 'day').format("YYYYMMDD")
|
||||
// const currentDate = dayjs().subtract(7, 'day').format("YYYYMMDD")
|
||||
const currentDate = dayjs().format("YYYYMMDD")
|
||||
this.form = {hourNum, groupCodeList, type: "1", changeWay: "1", currentDate, interval}
|
||||
this.$set(this.$multipleStoreBoard, 'search', {hourNum, groupCodeList: [], type: "1", changeWay: "1", categoryId: "", currentDate, interval})
|
||||
}, 500)
|
||||
|
||||
Reference in New Issue
Block a user