From 12a48c637cca91d063db7a5d5242f001237814f2 Mon Sep 17 00:00:00 2001 From: 董国庆 <364620639@qq.com> Date: 星期一, 31 三月 2025 13:59:48 +0800 Subject: [PATCH] 创建路由 --- src/router/index.js | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 16e7630..c4ba5c2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -38,11 +38,27 @@ component: () => import("../views/login"), }, ], + },{ + path: "", + redirect: "dispatching", + component: Layouts, + children: [ + { + path: "/dispatching", + meta: { + title: "实验调度管理", + oneself: true, + hide: true, + privilege: 'dispatching' + }, + component: () => import("../views/dispatching/list.vue"), + }, + ], }, ]; const router = new VueRouter({ - mode: "history", + mode: "hash", base: process.env.BASE_URL, routes, }); -- Gitblit v1.7.1