forked from drone/command-center-dashboard

罗广辉
2025-04-21 2800fa4f32f3900509cb4d6eefaf2bfaf54efdd7
src/router/views/index.js
@@ -1,91 +1,43 @@
import Index from '@/layout/index.vue';
import Store from '@/store/';
import Index from '@/layout/index.vue'
import Store from '@/store/'
import Layout from '@/page/index/layout.vue'
export default [
  {
    path: '/',
    component: () => import('@/layout/index.vue'),
    redirect: '/index',
    children: [
      {
        path: 'index',
        name: '首页',
        meta: {
          i18n: 'dashboard',
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/Home/Home.vue'),
      },
      {
        path: 'dashboard',
        name: '控制台',
        meta: {
          i18n: 'dashboard',
          menu: false,
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/wel/dashboard.vue'),
      },
    ],
  },
  {
    path: '/test',
    component: Index,
    redirect: '/test/index',
    children: [
      {
        path: 'index',
        name: '测试页',
        meta: {
          i18n: 'test',
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/Test.vue'),
      },
    ],
  },
  // {
  //   path: '/dict-horizontal',
  //   component: Layout,
  //   redirect: '/dict-horizontal/index',
  //   children: [
  //     {
  //       path: 'index',
  //       name: '字典管理',
  //       meta: {
  //         i18n: 'dict',
  //       },
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal.vue'),
  //     },
  //   ],
  // },
  // {
  //   path: '/dict-vertical',
  //   component: Layout,
  //   redirect: '/dict-vertical/index',
  //   children: [
  //     {
  //       path: 'index',
  //       name: '字典管理',
  //       meta: {
  //         i18n: 'dict',
  //       },
  //       component: () =>
  //         import(/* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical.vue'),
  //     },
  //   ],
  // },
  // {
  //   path: '/info',
  //   component: Layout,
  //   redirect: '/info/index',
  //   children: [
  //     {
  //       path: 'index',
  //       name: '个人信息',
  //       meta: {
  //         i18n: 'info',
  //       },
  //       component: () => import(/* webpackChunkName: "views" */ '@/views/system/userinfo.vue'),
  //     },
  //   ],
  // },
];
   {
      path: '/',
      component: () => import('@/layout/index.vue'),
      redirect: '/index',
      children: [
         {
            path: 'index',
            name: '首页',
            meta: {
               i18n: 'dashboard',
            },
            component: () => import(/* webpackChunkName: "home" */ '@/views/Home/Home.vue'),
         },
         {
            path: 'taskManage',
            name: '任务管理',
            meta: {
               i18n: 'dashboard',
               menu: false,
            },
            component: () =>
               import(/* webpackChunkName: "TaskManage" */ '@/views/TaskManage/TaskManage.vue'),
         },
      ],
   },
   {
      path: '/info',
      component: () => import('@/layout/index.vue'),
      redirect: '/info/index',
      children: [
         {
            path: 'index',
            name: '个人信息',
            component: () => import('@/views/System/Userinfo.vue'),
         },
      ],
   },
]