
import gicCard from './gic-card';
import cardPackage from './card-package';
import realGift from './real-gift';
import Layout from '@/components/layout/layout';
import virtualGift from './virtual-gift';
import giftOther from './gift-other';
// import stockRecord from './stock-record';
import Performance from './performance';

export const asyncRoutes = [
  ...gicCard,
  ...cardPackage,
  ...realGift,
  ...virtualGift,
  ...giftOther,
  // ...stockRecord,
  ...Performance
];


export const staticRoutes = [
  {
    path: '/',
    component: Layout,
    redirect: '/gic-card/list',
    children: [
      {
        path: '/index',
        component: () => import('@/views/index.vue'),
      },
    ]
  },
  {
    path: '*',
    redirect: '/index'
  },
];

export const routes = [ ...staticRoutes, ...asyncRoutes ];
