From 336eb9d9e98b0bee952c27a50820dbdb350bcc03 Mon Sep 17 00:00:00 2001 From: Kyomotoi Date: Sat, 31 Jul 2021 16:16:47 +0800 Subject: =?UTF-8?q?=F0=9F=94=A5=F0=9F=9A=9A=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除:laugh.txt,需要时再拉取 - 移动控制台文件至plugins/console目录下 - 新增: - 和管理贴贴w - 正式的可视化前端单页 --- .../console/atri-manege/src/router/index.js | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 ATRI/plugins/console/atri-manege/src/router/index.js (limited to 'ATRI/plugins/console/atri-manege/src/router/index.js') 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 -- cgit v1.2.3