|
|
@ -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 Post from '../views/Post.vue' |
|
|
|
import QAPage from '../views/QAPage' |
|
|
|
import QAPage from '../views/QAPage' |
|
|
|
|
|
|
|
|
|
|
|
Vue.use(VueRouter) |
|
|
|
Vue.use(VueRouter) |
|
|
@ -17,6 +18,12 @@ const routes = [ |
|
|
|
name: "Posts", |
|
|
|
name: "Posts", |
|
|
|
component: Posts, |
|
|
|
component: Posts, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
path: "/posts/:id", |
|
|
|
|
|
|
|
name: "Post", |
|
|
|
|
|
|
|
component: Post, |
|
|
|
|
|
|
|
props: true, |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: "/qa", |
|
|
|
path: "/qa", |
|
|
|
name: "QA", |
|
|
|
name: "QA", |
|
|
|