如下 代碼
const nowDate = new Date();
const lastMonth = new Date(new Date().setDate(nowDate.getDate() - 30));
this.value1 = [formatDate(lastMonth, "yyyy-MM-dd") + " 00:00:00", formatDate(nowDate, "yyyy-MM-dd") + " 23:59:59"];
value1 為 el-date-picker 組件 model綁定的值