|
|
@ -2,6 +2,7 @@ import Vue from 'vue' |
|
|
|
import VueRouter from 'vue-router' |
|
|
|
import VueRouter from 'vue-router' |
|
|
|
import Home from '../views/Home.vue' |
|
|
|
import Home from '../views/Home.vue' |
|
|
|
import Posts from '../views/Posts.vue' |
|
|
|
import Posts from '../views/Posts.vue' |
|
|
|
|
|
|
|
import QAPage from '../views/QAPage' |
|
|
|
|
|
|
|
|
|
|
|
Vue.use(VueRouter) |
|
|
|
Vue.use(VueRouter) |
|
|
|
|
|
|
|
|
|
|
@ -16,6 +17,11 @@ const routes = [ |
|
|
|
name: "Posts", |
|
|
|
name: "Posts", |
|
|
|
component: Posts, |
|
|
|
component: Posts, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
path: "/qa", |
|
|
|
|
|
|
|
name: "QA", |
|
|
|
|
|
|
|
component: QAPage |
|
|
|
|
|
|
|
}, |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
const router = new VueRouter({ |
|
|
|
const router = new VueRouter({ |
|
|
|