blob: f228422f04f56ae69085fa3668a887dffd8122b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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: "Gallery",
component: Gallery,
props: true
},
];
const router = new VueRouter({
routes,
});
export default router;
|