aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/router/index.ts
diff options
context:
space:
mode:
authorZero~Informatique2019-12-21 10:33:21 +0100
committerZero~Informatique2019-12-21 10:33:21 +0100
commit3f21d10338afe8eab699aaaea060556579e4b3c3 (patch)
treee6c9a51116b1cab9d6e44e21617bb7a1701ab463 /viewer/src/router/index.ts
parent9e4fdd6f38853d8a4a959901ab7902569de75484 (diff)
downloadldgallery-3f21d10338afe8eab699aaaea060556579e4b3c3.tar.gz
viewer:
Some renaming for better clarity Implemented a basic display of filenames with basic navigation
Diffstat (limited to 'viewer/src/router/index.ts')
-rw-r--r--viewer/src/router/index.ts10
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 @@
1import Vue from "vue"; 1import Vue from "vue";
2import VueRouter from "vue-router"; 2import VueRouter from "vue-router";
3import Gallery from "@/views/Gallery.vue";
3 4
4Vue.use(VueRouter); 5Vue.use(VueRouter);
5 6
7// async way : component: () => import(/* webpackChunkName: "Gallery" */ "@/views/Gallery.vue"),
8
6const routes = [ 9const 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