wangwei 4 лет назад
Родитель
Сommit
2abf1bc31e
2 измененных файлов с 31 добавлено и 31 удалено
  1. 1 0
      src/components/Icon/data/icons.data.ts
  2. 30 31
      src/store/modules/permission.ts

+ 1 - 0
src/components/Icon/data/icons.data.ts

@@ -1,4 +1,5 @@
 export default {
+  // iconpicker list source
   prefix: 'ant-design',
   icons: [
     'account-book-filled',

+ 30 - 31
src/store/modules/permission.ts

@@ -121,38 +121,37 @@ export const usePermissionStore = defineStore({
         try {
           // this.changePermissionCode();
           routeList = await getMenuList(); //请求后端路由菜单数组
-          console.log(`routeList == backend`, routeList);
           // 默认路由
-          const dashboard = {
-            path: '/dashboard',
-            name: 'Dashboard',
-            component: 'LAYOUT',
-            redirect: '/dashboard/analysis',
-            meta: {
-              icon: 'ion:grid-outline',
-              title: 'routes.dashboard.dashboard',
-            },
-            children: [
-              {
-                path: 'analysis',
-                name: 'Analysis',
-                component: '/dashboard/analysis/index',
-                meta: {
-                  affix: true,
-                  title: 'routes.dashboard.analysis',
-                },
-              },
-              {
-                path: 'workbench',
-                name: 'Workbench',
-                component: '/dashboard/workbench/index',
-                meta: {
-                  title: 'routes.dashboard.workbench',
-                },
-              },
-            ],
-          };
-          routeList.unshift(dashboard);
+          // const dashboard = {
+          //   path: '/dashboard',
+          //   name: 'Dashboard',
+          //   component: 'LAYOUT',
+          //   redirect: '/dashboard/analysis',
+          //   meta: {
+          //     icon: 'ion:grid-outline',
+          //     title: 'routes.dashboard.dashboard',
+          //   },
+          //   children: [
+          //     {
+          //       path: 'analysis',
+          //       name: 'Analysis',
+          //       component: '/dashboard/analysis/index',
+          //       meta: {
+          //         affix: true,
+          //         title: 'routes.dashboard.analysis',
+          //       },
+          //     },
+          //     {
+          //       path: 'workbench',
+          //       name: 'Workbench',
+          //       component: '/dashboard/workbench/index',
+          //       meta: {
+          //         title: 'routes.dashboard.workbench',
+          //       },
+          //     },
+          //   ],
+          // };
+          // routeList.unshift(dashboard);
         } catch (error) {
           console.error(error);
         }