fix chartjs register

This commit is contained in:
2025-10-04 13:29:13 +08:00
parent a823cb7a13
commit ef0b0c5528
4 changed files with 41 additions and 31 deletions

View File

@@ -6,6 +6,7 @@ import { getACRateNumber, getTagColor, parseTime } from "utils/functions"
import { Pie } from "vue-chartjs"
import { getProblemBeatRate } from "~/oj/api"
import { isDesktop } from "~/shared/composables/breakpoints"
import { registerChart } from "~/utils/registerChart"
const beatRate = ref("0")
@@ -73,6 +74,7 @@ async function getBeatRate() {
beatRate.value = res.data
}
onBeforeMount(registerChart)
onMounted(getBeatRate)
</script>