// 政令
import Decree from "@/views/decree/decreeHome/index.vue";
import DecreeLayoutContainer from "@/views/decree/decreeLayout/index.vue";
import DecreeOverviewLayout from "@/views/decree/decreeLayout/overview/index.vue";
import DecreeIntroduction from "@/views/decree/decreeLayout/overview/introduction/index.vue";
import DecreeBackground from "@/views/decree/decreeLayout/overview/background/index.vue";
import DecreeDeepDig from "@/views/decree/decreeLayout/deepdig/index.vue";
import DecreeInfluence from "@/views/decree/decreeLayout/influence/index.vue";
import Institution from "@/views/decree/institution/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 
    }
  }

]

export default decreeRoutes