@@ -80,7 +80,8 @@ export default {
},
created() {
let nowDate = new Date()
- this.query.yearMonth = nowDate.getFullYear() + '-' + (nowDate.getMonth() + 1)
+ let month = nowDate.getMonth() + 1
+ this.query.yearMonth = nowDate.getFullYear() + '-' + (month < 10 ? '0' + month : month)
this.getBaseData();
methods: {