add missing sourcecode
This commit is contained in:
parent
5ab26887d9
commit
de12ea3f4b
4 changed files with 110 additions and 0 deletions
31
src/router/index.js
Normal file
31
src/router/index.js
Normal file
|
@ -0,0 +1,31 @@
|
|||
import Vue from 'vue'
|
||||
import VueRouter from 'vue-router'
|
||||
import Home from '../views/Home.vue'
|
||||
import Warning from '../views/Warning'
|
||||
import Questionnaire from "@/views/Questionnaire";
|
||||
|
||||
Vue.use(VueRouter)
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
name: 'Home',
|
||||
component: Home
|
||||
},
|
||||
{
|
||||
path: '/warning',
|
||||
name: 'Warnung',
|
||||
component: Warning
|
||||
},
|
||||
{
|
||||
path: '/questionmaire',
|
||||
name: 'Fragebogen',
|
||||
component: Questionnaire
|
||||
}
|
||||
]
|
||||
|
||||
const router = new VueRouter({
|
||||
routes
|
||||
})
|
||||
|
||||
export default router
|
Loading…
Add table
Add a link
Reference in a new issue