summaryrefslogtreecommitdiff
path: root/ATRI/plugins/console/atri-manege/src/router
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2021-07-31 16:16:47 +0800
committerKyomotoi <[email protected]>2021-07-31 16:16:47 +0800
commit336eb9d9e98b0bee952c27a50820dbdb350bcc03 (patch)
tree718d5349232bce0d06cc901707bdd8f478c43314 /ATRI/plugins/console/atri-manege/src/router
parentc485985d3be687d17168512de44ea7b744fea7cc (diff)
downloadATRI-336eb9d9e98b0bee952c27a50820dbdb350bcc03.tar.gz
ATRI-336eb9d9e98b0bee952c27a50820dbdb350bcc03.tar.bz2
ATRI-336eb9d9e98b0bee952c27a50820dbdb350bcc03.zip
🔥🚚✨
- 移除:laugh.txt,需要时再拉取 - 移动控制台文件至plugins/console目录下 - 新增: - 和管理贴贴w - 正式的可视化前端单页
Diffstat (limited to 'ATRI/plugins/console/atri-manege/src/router')
-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