Add /qa route for QAPage

master
Raymonzut 5 years ago
parent cce7a20a7f
commit e18bdd2e29
No known key found for this signature in database
GPG Key ID: 97CF2D8BE2C69FC7
  1. 3
      client/src/App.vue
  2. 6
      client/src/router/index.js

@ -2,7 +2,8 @@
<div id="app">
<div id="nav">
<router-link to="/">Home</router-link> |
<router-link to="/posts">Posts</router-link>
<router-link to="/posts">Posts</router-link> |
<router-link to="/qa">QA</router-link>
</div>
<router-view />
</div>

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

Loading…
Cancel
Save