// 政令
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 DecreeMeasures = () => import('@/views/decree/decreeLayout/overview/measures/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 allOrganization = () => import('@/views/decree/allOrganization/index.vue')


const decreeRoutes = [
  // 政令首页
  {
    path: "/decree",
    name: "Decree",
    component: Decree,
    meta: {
      title: "科技政令概况",
      isShowHeader: true
    }
  },
  {
    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: "measures",
            name: "DecreeMeasures",
            component: DecreeMeasures,
            // 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,
      titleStorageKey: "institutionTabName"
    }
  },
  {
    path: "/decree/decreeOriginal",
    name: "DecreeOriginal",
    component: DecreeOriginal,
  },
  {
    path: "/decree/allOrganization",
    name: "allOrganization",
    component: allOrganization,
  },
]

export default decreeRoutes