import { Routes } from '@angular/router';

export const routes: Routes = [
  {
    path: '',
    loadChildren: () => import('./tabs/tabs.routes').then((m) => m.routes),
  },
  {
    path: 'daily-content',
    loadComponent: () => import('./daily-content/daily-content.page').then(m => m.DailyContentPage)
  },
  {
    path: 'card-detail',
    loadComponent: () => import('./tab1/card-detail/card-detail.page').then(m => m.CardDetailPage)
  },
  {
    path: 'card1',
    loadComponent: () => import('./tab1/card1/card1.page').then(m => m.Card1Page)
  },

  {
    path: 'book-management/:id',  // 添加动态参数 :id
    loadComponent: () => import('./book-management/book-management.page').then(m => m.BookManagementPage)
  },
  {
    path: 'poem-detail/:id',  // 添加动态参数 :id
    loadComponent: () => import('./poem-detail/poem-detail.page').then(m => m.PoemDetailPage)
  },
  // {
  //   path: 'login',  // 添加 login 页面路径
  //   loadComponent: () => import('./login/login.component').then(m => m.LoginComponent)
  // },
];
