<template>
  <component :is="page"></component>
</template>

<script>
import Warehouse from '@/views/indexs/warehouse/index';
import BulkCargo from '@/views/indexs/bulkCargo/index';

const ModuleIndexs = {
  'warehouse': 'Warehouse',
  'bulkCargo': 'BulkCargo'
};

export default {
  name: "Index",
  components: {
    Warehouse,
    BulkCargo,
  },
  data() {
    return {
      page: 'div',
    };
  },
  created() {
    const module = this.$store.getters.tenantConfig.homeType;
    this.page = ModuleIndexs[module] || 'Warehouse';
  },
  methods: {
  }
};
</script>

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

