From c303ec1a23c4b1fbad4fbda9007af2147dc327e2 Mon Sep 17 00:00:00 2001
From: vben <anncwb@126.com>
Date: 星期四, 03 十二月 2020 21:49:32 +0800
Subject: [PATCH] refactor: refactor route

---
 src/router/menus/modules/dashboard.ts |   45 ++++++++++++++++-----------------------------
 1 files changed, 16 insertions(+), 29 deletions(-)

diff --git a/src/router/menus/modules/dashboard.ts b/src/router/menus/modules/dashboard.ts
index 466d76a..1b95886 100644
--- a/src/router/menus/modules/dashboard.ts
+++ b/src/router/menus/modules/dashboard.ts
@@ -1,33 +1,20 @@
 import type { MenuModule } from '/@/router/types.d';
 
-const menu: MenuModule[] = [
-  {
-    orderNo: 0,
-    menu: {
-      path: '/dashboard/welcome',
-      name: 'routes.dashboard.welcome',
-    },
+const menu: MenuModule = {
+  orderNo: 10,
+  menu: {
+    name: 'routes.dashboard.dashboard',
+    path: '/dashboard',
+    children: [
+      {
+        path: '/workbench',
+        name: 'routes.dashboard.workbench',
+      },
+      {
+        path: '/analysis',
+        name: 'routes.dashboard.analysis',
+      },
+    ],
   },
-  {
-    orderNo: 10,
-    menu: {
-      name: 'routes.dashboard.dashboard',
-      path: '/dashboard',
-      children: [
-        {
-          path: '/workbench',
-          name: 'routes.dashboard.workbench',
-        },
-        {
-          path: '/analysis',
-          name: 'routes.dashboard.analysis',
-        },
-        // {
-        //   path: '/welcome',
-        //   name: 'routes.dashboard.welcome',
-        // },
-      ],
-    },
-  },
-];
+};
 export default menu;

--
Gitblit v1.8.0