summaryrefslogtreecommitdiff
path: root/frontend/src/router/index.js
blob: de923185db1a616ec12de16e58e394e81b1921f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import Vue from 'vue'
import Router from 'vue-router'
import MainPage from '../components/MainPage'
import Index from '../components/Index'
import MailLog from '../components/MailLog'
import Settings from '../components/Settings'

Vue.use(Router)

export default new Router({
  routes: [
    {path:'/',name:'MainPage',component:MainPage,redirect:'/index',
  children:[
    {path:'/index',name:'Index',component:Index},
    {path:'/mailLog',name:"MailLog",component:MailLog},
    {path:'/settings',name:"Settings",component:Settings}
  ]}
  ]
})