From 3f21d10338afe8eab699aaaea060556579e4b3c3 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 21 Dec 2019 10:33:21 +0100 Subject: viewer: Some renaming for better clarity Implemented a basic display of filenames with basic navigation --- viewer/src/router/index.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'viewer/src/router/index.ts') 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 @@ import Vue from "vue"; import VueRouter from "vue-router"; +import Gallery from "@/views/Gallery.vue"; Vue.use(VueRouter); +// async way : component: () => import(/* webpackChunkName: "Gallery" */ "@/views/Gallery.vue"), + const routes = [ { - path: "/", - name: "root", - component: () => import(/* webpackChunkName: "root" */ "@/views/Root.vue"), + path: "*", + name: "Gallery", + component: Gallery, + props: true }, ]; -- cgit v1.2.3