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 // // route level code-splitting
22 // // this generates a separate chunk (about.[hash].js) for this route
23 // // which is lazy-loaded when the route is visited.
24 // component: loadView('About'),
26 // // return import(/* webpackChunkName: "about" */ "./views/About.vue");
32 // component: loadView("Test"),
34 // TODO: gameRef, problemId: https://router.vuejs.org/guide/essentials/dynamic-matching.html