import HomePage from '../../src/components/HomePage.vue'
import TodoList from '../../src/components/HomePage.vue'
import GenerateImg from '../../src/components/GenerateImg.vue'
import SelectTemplateV2 from '../../src/components/SelectTemplateV2.vue'
import GenerateImgConfirm from '../../src/components/GenerateImgConfirm.vue'
import MyPhoto from '../../src/components/MyPhoto.vue'
import SynthesizedResults from '../../src/components/SynthesizedResults.vue'

export default [
  {
    path: '/',
    name: 'home',
    component: HomePage
  },
  {
    path: '/todoList',
    name: 'todoList',
    component: TodoList
  },
  {
    path: '/selectTemplateV2',
    name: 'selectTemplateV2',
    component: SelectTemplateV2
  },
  {
    path: '/generateImg',
    name: 'generateImg',
    component: GenerateImg
  },
  {
    path: '/generateImgConfirm',
    name: 'generateImgConfirm',
    component: GenerateImgConfirm
  },
  {
    path: '/myPhoto',
    name: 'myPhoto',
    component: MyPhoto
  },
  {
    path: '/synthesizedResults',
    name: 'synthesizedResults',
    component: SynthesizedResults
  },
  // {
  //   path: '/todoList',
  //   name: 'todo',
  //   component: () => import('../../src/components/TodoList.vue')
  // },
  {
    path: '/:pathMatch(.*)*', // 404 路由
    redirect: '/' 
  }
]