diff options
Diffstat (limited to 'viewer/src/router/index.ts')
-rw-r--r-- | viewer/src/router/index.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/viewer/src/router/index.ts b/viewer/src/router/index.ts index 03ae1cd..f228422 100644 --- a/viewer/src/router/index.ts +++ b/viewer/src/router/index.ts | |||
@@ -1,13 +1,17 @@ | |||
1 | import Vue from "vue"; | 1 | import Vue from "vue"; |
2 | import VueRouter from "vue-router"; | 2 | import VueRouter from "vue-router"; |
3 | import Gallery from "@/views/Gallery.vue"; | ||
3 | 4 | ||
4 | Vue.use(VueRouter); | 5 | Vue.use(VueRouter); |
5 | 6 | ||
7 | // async way : component: () => import(/* webpackChunkName: "Gallery" */ "@/views/Gallery.vue"), | ||
8 | |||
6 | const routes = [ | 9 | const routes = [ |
7 | { | 10 | { |
8 | path: "/", | 11 | path: "*", |
9 | name: "root", | 12 | name: "Gallery", |
10 | component: () => import(/* webpackChunkName: "root" */ "@/views/Root.vue"), | 13 | component: Gallery, |
14 | props: true | ||
11 | }, | 15 | }, |
12 | ]; | 16 | ]; |
13 | 17 | ||