燕鹏
4 years ago
5 changed files with 4 additions and 46 deletions
@ -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 |
|||
} |
|||
] |
|||
}) |
Loading…
Reference in new issue