summaryrefslogtreecommitdiff
path: root/frontend/src/router/index.js
diff options
context:
space:
mode:
authorunknown <[email protected]>2023-06-05 20:04:56 +0800
committerunknown <[email protected]>2023-06-05 20:04:56 +0800
commit6766bd7c6f5d59dc5a8024c192f7a511653feca3 (patch)
tree4f95df1832f326980370cacc80ef33d184bf4ede /frontend/src/router/index.js
frontend codeHEADmain
Diffstat (limited to 'frontend/src/router/index.js')
-rw-r--r--frontend/src/router/index.js19
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}
+ ]}
+ ]
+})