X-Git-Url: https://git.auder.net/game/%22%20%20%20data.gameInfo.gameId%20%20%20%22?a=blobdiff_plain;f=client%2Fsrc%2Frouter.js;h=b373cdc2232a1be2aa9fbe55b70e3b6b33751ff7;hb=7c3cd3794ee13c41fc623179f7d4142d0d3e74da;hp=08bbf88ba281350a284334377bedb0e76b9f5d1f;hpb=8d61fc4ab7373b4a576f3f9108cdf7768ae27096;p=vchess.git diff --git a/client/src/router.js b/client/src/router.js index 08bbf88b..b373cdc2 100644 --- a/client/src/router.js +++ b/client/src/router.js @@ -16,21 +16,26 @@ export default new Router({ component: Home, }, { - path: "/about", - name: "about", - // route level code-splitting - // this generates a separate chunk (about.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: loadView('About'), - //function() { - // return import(/* webpackChunkName: "about" */ "./views/About.vue"); - //} + path: "/variants", + name: "variants", + component: loadView("Variants"), }, - { - path: "/test", - name: "test", - component: loadView("Test"), - }, +// { +// path: "/variants/:vname([a-zA-Z0-9]+)", +// name: "rules", +// component: Rules, +// }, +// { +// path: "/about", +// name: "about", +// // route level code-splitting +// // this generates a separate chunk (about.[hash].js) for this route +// // which is lazy-loaded when the route is visited. +// component: loadView('About'), +// //function() { +// // return import(/* webpackChunkName: "about" */ "./views/About.vue"); +// //} +// }, // TODO: gameRef, problemId: https://router.vuejs.org/guide/essentials/dynamic-matching.html ] });