summaryrefslogtreecommitdiff
path: root/ATRI/plugins/console/atri-manege/src/router/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'ATRI/plugins/console/atri-manege/src/router/index.js')
-rw-r--r--ATRI/plugins/console/atri-manege/src/router/index.js40
1 files changed, 40 insertions, 0 deletions
diff --git a/ATRI/plugins/console/atri-manege/src/router/index.js b/ATRI/plugins/console/atri-manege/src/router/index.js
new file mode 100644
index 0000000..480f5d0
--- /dev/null
+++ b/ATRI/plugins/console/atri-manege/src/router/index.js
@@ -0,0 +1,40 @@
+import Vue from 'vue'
+import VueRouter from 'vue-router'
+
+Vue.use(VueRouter)
+
+const routes = [
+ {
+ path: '/',
+ name: '主页 | Home',
+ component: () => import('../views/Home.vue')
+ },
+ {
+ path: '/control',
+ name: '控制面板 | Control',
+ component: () => import('../views/Control.vue')
+ },
+ {
+ path: '/data',
+ name: '数据 | Data',
+ component: () => import('../views/Data.vue')
+ },
+ {
+ path: '/chat',
+ name: '聊天 | Chat',
+ component: () => import('../views/Chat.vue')
+ },
+ {
+ path: '/a-test',
+ name: '测试 | Test',
+ component: () => import('../views/Test.vue')
+ }
+]
+
+const router = new VueRouter({
+ mode: 'history',
+ base: process.env.BASE_URL,
+ routes
+})
+
+export default router