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

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      redirect: '/basicSettings'
      // name: 'home',
      // component: () => import('@/views/HelloWorld.vue'),
      // props: {
      //   msg: 'Hello Vue 3 + TypeScript + Vite + Tailwind CSS/UI + Pinia + Vue Router'
      // }
    },
    {
      path: '/basicSettings',
      name: 'basicSettings',
      component: () => import('@/views/basicSettings/index.vue'),
      props: {
        msg: ''
      }
    },
    {
      path: '/digitalHuman',
      name: 'digitalHuman',
      component: () => import('@/views/digitalHuman/index.vue'),
      props: {
        msg: ''
      }
    },
    {
      path: '/textToaudio',
      name: 'textToaudio',
      component: () => import('@/views/textToaudio/index.vue'),
      props: {
        msg: ''
      }
    },
    {
      path: '/message',
      name: 'message',
      component: () => import('@/views/message/index.vue'),
      props: {
        msg: ''
      }
    },
    {
      path: '/topicNavigation',
      name: 'topicNavigation',
      component: () => import('@/views/topicNavigation/index.vue'),
      props: {
        msg: ''
      }
    }
  ]
})

export default router
