From 86893efe3d8154a9fbec113c596fcd21565dd03c Mon Sep 17 00:00:00 2001 From: edmondlang Date: Sat, 23 Apr 2022 14:59:52 +0800 Subject: [PATCH] update base price date range --- .../settings/elements/ListBasePriceSectionComponent.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/assets/vue/components/settings/elements/ListBasePriceSectionComponent.vue b/resources/assets/vue/components/settings/elements/ListBasePriceSectionComponent.vue index cc241c19..cb31b4de 100644 --- a/resources/assets/vue/components/settings/elements/ListBasePriceSectionComponent.vue +++ b/resources/assets/vue/components/settings/elements/ListBasePriceSectionComponent.vue @@ -178,6 +178,7 @@ }, resetSearch() { var today = new Date(); + today = today = new Date(today.setMonth(today.getMonth()-1)); today = new Date(today.getTime() - ((today.getTimezoneOffset())*60*1000)); this.searchParam.dateFrom = today.toISOString().split('T')[0];