<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>
<!--  <semshome v-show="homeType == 2"></semshome>-->
</template>

<script>
  // import homepage from "./homepage";
  // 原始首页
  // import homepage from "./monitor/elec/index";
  // 重构后首页
  import homepage from "./monitor/elecNew/index";

  import byxhome from "./byxhome";
  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
    },
    mounted() {
      console.log(this.$store.state.user.homeType)
      this.homeType = this.$store.state.user.homeType
    },
  };
</script>

<style lang="scss" scoped>

</style>
