import { RouteRecordRaw, createRouter, createWebHashHistory } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/home' //重定向首页
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import("@/pages/Home/index.vue"),  //首页
    meta: {
      title: '首页',
      hasMenu: false,
    },
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router
