forked from drone/command-center-dashboard

LGH
2025-03-26 4d16cee35c0cdf2c505d00a2a85364a0a09bcbae
src/router/views/index.js
@@ -1,12 +1,11 @@
import Layout from '@/page/index/index.vue';
import Index from '@/layout/index.vue';
import Store from '@/store/';
export default [
  {
    path: '/wel',
    component: () =>
      Store.getters.isMacOs ? import('@/mac/index.vue') : import('@/page/index/index.vue'),
    redirect: '/wel/index',
    path: '/',
    component: () => import('@/layout/index.vue'),
    redirect: '/index',
    children: [
      {
        path: 'index',
@@ -14,7 +13,7 @@
        meta: {
          i18n: 'dashboard',
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/wel/index.vue'),
        component: () => import(/* webpackChunkName: "views" */ '@/views/Home/Home.vue'),
      },
      {
        path: 'dashboard',
@@ -29,7 +28,7 @@
  },
  {
    path: '/test',
    component: Layout,
    component: Index,
    redirect: '/test/index',
    children: [
      {
@@ -38,7 +37,7 @@
        meta: {
          i18n: 'test',
        },
        component: () => import(/* webpackChunkName: "views" */ '@/views/util/test.vue'),
        component: () => import(/* webpackChunkName: "views" */ '@/views/Test.vue'),
      },
    ],
  },