25 lines
423 B
TypeScript
25 lines
423 B
TypeScript
import Vue from "vue";
|
|
import VueRouter from "vue-router";
|
|
|
|
Vue.use(VueRouter);
|
|
|
|
const routes = [
|
|
{
|
|
path: "/",
|
|
name: "index",
|
|
component: () => import("@/views/IndexPage.vue"),
|
|
},
|
|
{
|
|
path: "/visibility-plugin",
|
|
name: "visibilityPlugin",
|
|
component: () => import("@/views/VisibilityPluginDemo.vue"),
|
|
},
|
|
];
|
|
|
|
const router = new VueRouter({
|
|
mode: "history",
|
|
routes,
|
|
});
|
|
|
|
export default router;
|