2 import Router
from "vue-router";
3 import Home
from "./views/Home.vue";
7 function loadView(view
) {
8 return () => import(/* webpackChunkName: "view-[request]" */ `@/views/${view}.vue`)
11 export default new Router({
21 component: loadView("Variants"),
24 // path: "/variants/:vname([a-zA-Z0-9]+)",
31 // // route level code-splitting
32 // // this generates a separate chunk (about.[hash].js) for this route
33 // // which is lazy-loaded when the route is visited.
34 // component: loadView('About'),
36 // // return import(/* webpackChunkName: "about" */ "./views/About.vue");
39 // TODO: gameRef, problemId: https://router.vuejs.org/guide/essentials/dynamic-matching.html