configuracion inicial del Front / Header, footer
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import Vue from 'vue'
|
||||
import VueRouter from 'vue-router'
|
||||
|
||||
import Home from './view/Home.vue'
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
name: 'root',
|
||||
redirect: 'home'
|
||||
},
|
||||
{
|
||||
path: '/home',
|
||||
component: Home,
|
||||
name: 'home'
|
||||
},
|
||||
]
|
||||
|
||||
Vue.use(VueRouter)
|
||||
/* Produccción */
|
||||
// const router = new VueRouter({mode: 'history', routes})
|
||||
/* Pruebas */
|
||||
const router = new VueRouter({ routes })
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user