燕鹏
4 vuotta sitten
5 muutettua tiedostoa jossa 4 lisäystä ja 46 poistoa
@ -1,21 +0,0 @@ |
|||
import Vue from 'vue' |
|||
import Router from 'vue-router' |
|||
import Home from '@/views/Home.vue' |
|||
import About from '@/views/About.vue' |
|||
|
|||
Vue.use(Router) |
|||
|
|||
export default new Router({ |
|||
routes: [ |
|||
{ |
|||
path: '/', |
|||
name: 'home', |
|||
component: Home |
|||
}, |
|||
{ |
|||
path: '/about', |
|||
name: 'about', |
|||
component: About |
|||
} |
|||
] |
|||
}) |
@ -1,21 +0,0 @@ |
|||
import Vue from 'vue' |
|||
import Router from 'vue-router' |
|||
import Home from '@/views/Home.vue' |
|||
import About from '@/views/About.vue' |
|||
|
|||
Vue.use(Router) |
|||
|
|||
export default new Router({ |
|||
routes: [ |
|||
{ |
|||
path: '/', |
|||
name: 'home', |
|||
component: Home |
|||
}, |
|||
{ |
|||
path: '/about', |
|||
name: 'about', |
|||
component: About |
|||
} |
|||
] |
|||
}) |
Ladataan…
Reference in new issue