diff options
author | Zero~Informatique | 2019-12-21 10:33:21 +0100 |
---|---|---|
committer | Zero~Informatique | 2019-12-21 10:33:21 +0100 |
commit | 3f21d10338afe8eab699aaaea060556579e4b3c3 (patch) | |
tree | e6c9a51116b1cab9d6e44e21617bb7a1701ab463 /viewer/src/router | |
parent | 9e4fdd6f38853d8a4a959901ab7902569de75484 (diff) | |
download | ldgallery-3f21d10338afe8eab699aaaea060556579e4b3c3.tar.gz |
viewer:
Some renaming for better clarity
Implemented a basic display of filenames with basic navigation
Diffstat (limited to 'viewer/src/router')
-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 | ||