<template>
  <div class="content">
    <xuhui v-if="(url).indexOf('xuhui') > -1 || (url).indexOf('31.0.161.39') > -1||(url).indexOf('pudong') > -1 || (url).indexOf('211.136.105.193') > -1" />
    <!-- <xuhui v-if="($api.BASE_URL).indexOf('xuhui') > -1 || 
      ($api.BASE_URL).indexOf('31.0.161.39') > -1||($api.BASE_URL).indexOf('pudong') > -1 || ($api.BASE_URL).indexOf('211.136.105.193') > -1" /> -->
    <home v-else />

  </div>
</template>

<script>
import xuhui from '@/views/homeXuhui'
import home from '@/views/home'
export default {
  components: {
    xuhui,
    home
  },
  data () {
    return {
      url: window.location.origin
    }
  },

  mounted() {
    console.log(window.location.origin)
    console.log(this.$api.BASE_URL)
  }

}
</script>

<style scoped>
  .content{
    width: 100%;
    height: 100%;
  }

</style>