diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-09-11 17:08:28 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-09-11 17:08:28 -0400 |
commit | c3c8633a7cd0343ce36dd0d254ace605303e1a1d (patch) | |
tree | c06b6489412038055077e2538abc7190601eff4d /iridescence/src/router | |
parent | 8ac8ad09c71b10597a354eabf81cbafa14f00940 (diff) | |
download | theglassyladies-c3c8633a7cd0343ce36dd0d254ace605303e1a1d.tar.xz theglassyladies-c3c8633a7cd0343ce36dd0d254ace605303e1a1d.zip |
migrated back from typescript
Diffstat (limited to 'iridescence/src/router')
-rw-r--r-- | iridescence/src/router/index.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/iridescence/src/router/index.js b/iridescence/src/router/index.js index 28b1079..8c05e28 100644 --- a/iridescence/src/router/index.js +++ b/iridescence/src/router/index.js @@ -1,6 +1,8 @@ import Vue from "vue"; import VueRouter from "vue-router"; import Home from "../views/Home.vue"; +import About from "../views/About.vue"; +import Admin from "../views/Admin.vue"; Vue.use(VueRouter); @@ -16,22 +18,19 @@ const routes = [ // 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: () => - import(/* webpackChunkName: "about" */ "../views/About.vue") + component: About }, { path: "/admin", name: "Administration", - component: () => - import(/* webpackChunkName: "admin" */ "../views/Admin.vue") + component: Admin } ]; const router = new VueRouter({ mode: "history", base: process.env.BASE_URL, - routes: routes, - linkExactActiveClass: "is-active" + routes }); export default router; |