燕鹏
4 年前
共有 5 個檔案被更改,包括 4 行新增 和 46 行删除
@ -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 |
|||
} |
|||
] |
|||
}) |
載入中…
新增問題並參考