mirror of https://github.com/interlegis/sapl.git
10 changed files with 23 additions and 30 deletions
@ -0,0 +1,11 @@ |
|||
import Vue from "vue"; |
|||
import Router from "vue-router"; |
|||
|
|||
Vue.use(Router); |
|||
|
|||
export default new Router({ |
|||
mode: "history", |
|||
base: process.env.BASE_URL, |
|||
routes: [ |
|||
] |
|||
}); |
|||
@ -1,13 +1,13 @@ |
|||
<template> |
|||
<div class="home"> |
|||
<img alt="Vue logo" src="../assets/logo.png" /> |
|||
<img alt="Vue logo" src="../../assets/logo.png" /> |
|||
<HelloWorld msg="Welcome to Your Vue.js App" /> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
// @ is an alias to /src |
|||
import HelloWorld from "@/components/HelloWorld.vue"; |
|||
import HelloWorld from "@/hellow/components/HelloWorld.vue"; |
|||
|
|||
export default { |
|||
name: "home", |
|||
@ -1,26 +0,0 @@ |
|||
import Vue from "vue"; |
|||
import Router from "vue-router"; |
|||
import Home from "./views/Home.vue"; |
|||
|
|||
Vue.use(Router); |
|||
|
|||
export default new Router({ |
|||
mode: "history", |
|||
base: process.env.BASE_URL, |
|||
routes: [ |
|||
{ |
|||
path: "/", |
|||
name: "home", |
|||
component: Home |
|||
}, |
|||
{ |
|||
path: "/about", |
|||
name: "about", |
|||
// route level code-splitting
|
|||
// this generates a separate chunk (about.[hash].js) for this route
|
|||
// which is lazy-loaded when the route is visited.
|
|||
component: () => |
|||
import(/* webpackChunkName: "about" */ "./views/About.vue") |
|||
} |
|||
] |
|||
}); |
|||
Loading…
Reference in new issue