<template>
  <div id="index">
    <detail-layout>
      <template v-slot:mainSide>
        <menus :menuList="menuList"></menus>
      </template>
      <template v-slot:mainMain>
        <router-view />
      </template>
    </detail-layout>
  </div>
</template>

<script>
import menus from '@/layout/layout-part/menus.vue';
import detailLayout from '@/layout/detail-layout.vue';
export default {
  methods: {
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
    test(val) {
      this.$set(this, `activeMenu`, val);
    },
  },
  name: 'index',
  props: {},

  components: {
    detailLayout,
    menus,
  },
  data: () => ({
    input3: '',
    currentPage4: 1,
    activeMenu: '1',
    menuList: [{ index: '1', name: '创业法规' }, { index: '2', name: '创业培训' }, { index: '3', name: '创业案例' }],
  }),
  created() {},
  computed: {},
};
</script>

<style lang="less" scoped></style>
