diff options
| author | unknown <[email protected]> | 2023-06-05 20:04:56 +0800 |
|---|---|---|
| committer | unknown <[email protected]> | 2023-06-05 20:04:56 +0800 |
| commit | 6766bd7c6f5d59dc5a8024c192f7a511653feca3 (patch) | |
| tree | 4f95df1832f326980370cacc80ef33d184bf4ede /frontend/src/router/index.js | |
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} + ]} + ] +}) |
