import Vue from 'vue';
import VueRouter from 'vue-router';
Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    name: '猜盲盒',
    component: () => import('@/components/cmh/index.vue'),
  },
  {
    path: '/rule',
    component: () => import('@/components/cmh/rule.vue'),
    name: '游戏规则'
  },
  {
    path: '/my-reward',
    component: () => import('@/components/cmh/my-reward.vue'),
    name: '我的奖品'
  },
  {
    path: '/support',
    component: () => import('@/components/cmh/support.vue'),
    name: '助力拆盲盒'
  },
];

const router = new VueRouter({
  base: '/',
  routes,
});

export default router;
