diff options
Diffstat (limited to 'frontend/src/router/index.js')
| -rw-r--r-- | frontend/src/router/index.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js new file mode 100644 index 0000000..de92318 --- /dev/null +++ b/frontend/src/router/index.js @@ -0,0 +1,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} + ]} + ] +}) |
