aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/router
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/router')
-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