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

@@ -1,4 +1,5 @@
import { RouteRecordRaw } from "vue-router"
import { registerChart } from "./utils/registerChart"
export const ojs: RouteRecordRaw = {
path: "/",
@@ -65,6 +66,7 @@ export const ojs: RouteRecordRaw = {
{
path: "rank",
component: () => import("oj/rank/list.vue"),
beforeEnter: registerChart,
},
{
path: "announcement",
@@ -95,6 +97,7 @@ export const ojs: RouteRecordRaw = {
path: "ai-analysis",
component: () => import("oj/ai/analysis.vue"),
meta: { requiresAuth: true },
beforeEnter: registerChart,
},
],
}