fix an error with the all time date range for role stats.
This commit is contained in:
@@ -183,11 +183,13 @@ async function loadData() {
|
||||
monthId: dateSelect.value
|
||||
})
|
||||
gameStats.value = gameStatsResponse.data
|
||||
console.log(gameStatsResponse.data)
|
||||
|
||||
const roleStatsResponse = await axios.post('/api/serverstats/rolestats', {
|
||||
monthId: dateSelect.value
|
||||
})
|
||||
roleStats.value = roleStatsResponse.data
|
||||
console.log(roleStatsResponse.data)
|
||||
}
|
||||
|
||||
function buildDateItems() {
|
||||
@@ -260,7 +262,6 @@ watch(chartSelect, async (newValue: ChartType, oldValue: ChartType) => {
|
||||
})
|
||||
|
||||
onMounted(async () => {
|
||||
console.log(dateItems)
|
||||
if (!route.query.monthId) {
|
||||
router.replace({ query: { monthId: -1 } })
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user