diff --git a/frontend/src/components/widget/DeWidget/DeDate.vue b/frontend/src/components/widget/DeWidget/DeDate.vue index 14ac352..ead9bc2 100644 --- a/frontend/src/components/widget/DeWidget/DeDate.vue +++ b/frontend/src/components/widget/DeWidget/DeDate.vue @@ -46,6 +46,7 @@ export default { start.setTime(start.getTime() - 3600 * 1000 * 24 * 1); this.options.value = start; console.log("date", this.options, start); + this.setCondition() } else if (this.options.attrs.type === "daterange") { const end = new Date(); end.setTime(end.getTime() - 3600 * 1000 * 24 * 1); @@ -53,6 +54,7 @@ export default { start.setTime(start.getTime() - 3600 * 1000 * 24 * 8); this.options.value = [start, end]; console.log("daterange", this.options); + this.setCondition() } else { this.options.value = null; }