mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-25 23:03:47 +01:00
35 lines
578 B
JavaScript
35 lines
578 B
JavaScript
import Vue from "vue";
|
|
import VueRouter from "vue-router";
|
|
import Meta from "vue-meta";
|
|
import App from "./App.vue";
|
|
import Container from "./pages/Container.vue";
|
|
import Index from "./pages/Index.vue";
|
|
|
|
Vue.use(VueRouter);
|
|
Vue.use(Meta);
|
|
|
|
const routes = [
|
|
{
|
|
path: "/",
|
|
component: Index,
|
|
name: "default"
|
|
},
|
|
{
|
|
path: "/container/:id",
|
|
component: Container,
|
|
name: "container",
|
|
props: true
|
|
}
|
|
];
|
|
|
|
const router = new VueRouter({
|
|
mode: "history",
|
|
base: BASE_PATH + "/",
|
|
routes
|
|
});
|
|
|
|
new Vue({
|
|
router,
|
|
render: h => h(App)
|
|
}).$mount("#app");
|