// 政令
const Decree = () => import('@/views/decree/decreeHome/index.vue')
const DecreeLayoutContainer = () => import('@/views/decree/decreeLayout/index.vue')
const DecreeOverviewLayout = () => import('@/views/decree/decreeLayout/overview/index.vue')
const DecreeIntroduction = () => import('@/views/decree/decreeLayout/overview/introduction/index.vue')
const DecreeBackground = () => import('@/views/decree/decreeLayout/overview/background/index.vue')
const DecreeDeepDig = () => import('@/views/decree/decreeLayout/deepdig/index.vue')
const DecreeInfluence = () => import('@/views/decree/decreeLayout/influence/index.vue')
const Institution = () => import('@/views/decree/institution/index.vue')
const DecreeOriginal = () => import('@/views/decree/decreeOriginal/index.vue')


const decreeRoutes = [
  // 政令首页
  {
    path: "/decree",
    name: "Decree",
    component: Decree,
    meta: {
      title: "政令概览"
    }
  },
  {
    path: "/decreeLayout",
    name: "DecreeLayoutContainer",
    component: DecreeLayoutContainer,
    redirect: "/decreeLayout/overview",
    // meta: {
    //   title: "政令布局"
    // },
    children: [
      {
        path: "overview",
        name: "DecreeOverviewLayout",
        component: DecreeOverviewLayout,
        redirect: "/decreeLayout/overview/introduction",
        meta: {
          title: "政令详情",
          dynamicTitle: true // 标记需要动态设置标题
        },
        children: [
          {
            path: "introduction",
            name: "DecreeIntroduction",
            component: DecreeIntroduction,
            // meta: { title: "政令简介" }
          },
          {
            path: "background",
            name: "DecreeBackground",
            component: DecreeBackground,
            // meta: { title: "政令背景" }
          }
        ]
      },
      // 深度挖掘路由
      {
        path: "deepDig",
        name: "DeepDig",
        component: DecreeDeepDig,
        // meta: {
        //   title: "深度挖掘"
        // }
      },
      // 影响分析路由
      {
        path: "influence",
        name: "DecreeInfluence",
        component: DecreeInfluence,
        // meta: {
        //   title: "影响分析"
        // }
      },
    ]
  },
  {
    path: "/institution",
    name: "Institution",
    component: Institution,
    meta: {
      title: "行政机构主页",
      dynamicTitle: true
    }
  },
  {
    path: "/decree/decreeOriginal",
    name: "DecreeOriginal",
    component: DecreeOriginal,
    // meta: {
    //   title: "政令原文"
    // }
  },

]

export default decreeRoutes