fixed bug ##205
This commit is contained in:
parent
715d216efb
commit
e708498818
|
@ -77,6 +77,12 @@ export default {
|
|||
}
|
||||
},
|
||||
created() {
|
||||
for (let intDate = 1; intDate < 7; intDate++) {
|
||||
if (new Date(this.date.getFullYear(), this.date.getMonth(), intDate).getDay() === 3)
|
||||
if (this.date.getDate() < intDate)
|
||||
this.date = new Date(this.date.getFullYear(), this.date.getMonth(), 0)
|
||||
}
|
||||
|
||||
this.createMonth(this.date)
|
||||
this.getAllUsers()
|
||||
},
|
||||
|
@ -111,7 +117,8 @@ export default {
|
|||
computed: {
|
||||
...mapGetters({
|
||||
month: 'sm/month'
|
||||
})
|
||||
}),
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue