fix: update attendance month handling to use lastMonths and correct month indexing
This commit is contained in:
@@ -82,7 +82,7 @@ onMounted(async () => {
|
||||
loading.value = true
|
||||
const currentDate = new Date()
|
||||
try {
|
||||
const response = await getData(currentDate.getFullYear(), currentDate.getMonth())
|
||||
const response = await getData(currentDate.getFullYear(), currentDate.getMonth() + 1)
|
||||
input.value = response
|
||||
attendanceStore.loadFromResponse(response)
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user