<template>
  <homepage v-if="homeType== 1"></homepage>
  <semshome v-else-if="homeType == 2"></semshome>
  <invoice v-else-if="homeType== 3"></invoice>
  <byxhome v-else-if="homeType== 4"></byxhome>
  <hcqhome v-else-if="homeType== 5"></hcqhome>
  <ldpehome v-else-if="homeType== 6"></ldpehome>
  <EoegHome v-else-if="homeType== 7"></EoegHome>
<!--  <semshome v-show="homeType == 2"></semshome>-->
</template>

<script>
  // import homepage from "./homepage";
  // 原始首页
  // import homepage from "./monitor/elec/index";
  // 重构后首页
  import homepage from "./monitor/bccHome/index";
  import byxhome from "./byxhome";
  import hcqhome from "./hcqhome";
  import semshome from "./sems/specanalysis/index";
  import invoice from "./invoice/bookingworkticket/index";
  import '@/common/flexible.js';
  import EoegHome from "@/views/eoeg/home/index.vue";
  import Ldpehome from "@/views/ldpehome.vue";

  export default {
    data() {
      return {
        homeType: '',
      };
    },
    components: {
      Ldpehome,
      EoegHome,
      homepage,
      semshome,
      invoice,
      byxhome,
      hcqhome
    },
    mounted() {
      console.log(this.$store.state.user.homeType)
      this.homeType = this.$store.state.user.homeType
    },
  };
</script>

<style lang="scss" scoped>

</style>
