fix init.

This commit is contained in:
2023-01-27 11:06:31 +08:00
parent f557135075
commit be6e9eaaef
9 changed files with 105 additions and 39 deletions

View File

@@ -1,4 +1,5 @@
import { RouteRecordRaw } from "vue-router"
import { loadChart } from "./shared/composables/chart"
export const routes: RouteRecordRaw[] = [
{
@@ -11,6 +12,9 @@ export const routes: RouteRecordRaw[] = [
component: () => import("oj/problem/detail.vue"),
props: true,
name: "ProblemDetail",
beforeEnter() {
loadChart()
},
},
{
path: "submission",
@@ -40,6 +44,9 @@ export const routes: RouteRecordRaw[] = [
{
path: "rank",
component: () => import("oj/rank/list.vue"),
beforeEnter() {
loadChart()
},
},
{
path: "learn",