<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>
<!--  <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';

  export default {
    data() {
      return {
        homeType: '',
      };
    },
    components: {
      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>
