fix today into yesterday date in ringkasan terkumpul

This commit is contained in:
hafifierahman
2023-07-02 16:54:56 +08:00
parent 5b7cf88988
commit f5625247e9
+6 -3
View File
@@ -41,7 +41,8 @@ export default {
return{
jenisgenerate:'none',
kodcaw:'',
maxDate: null
maxDate: null,
yesterday: null
}
},
mounted() {
@@ -49,8 +50,10 @@ export default {
},
methods: {
setMaxDate() {
const today = new Date().toISOString().split('T')[0];
this.maxDate = today;
const today = new Date();
today.setDate(today.getDate() - 1);
this.yesterday = today.toISOString().split('T')[0];
this.maxDate = this.yesterday;
},
async generatepdf(){
await this.setJenis('pdf');