<template>
  <div>


    <customer-info @changeCustomerName="changeCustomerName"
                   v-if="userType==='work'"></customer-info>
  </div>
</template>

<script>
import CustomerInfo from './customer/manage/CustomerInfo'
export default {
  data () {
    return {
      // i18nMessages: messages,
      updatePassowrdVisible: false,
      customerName: localStorage.getItem('customerName'),
      userType: localStorage.getItem('userType')

    }
  },
  components: {
    CustomerInfo
  },
  mounted () {
    //关闭所有标签页
    // tabs, 关闭全部
    this.$store.state.contentTabs = this.$store.state.contentTabs.filter(item => item.name === 'home')
  },
  methods: {
    changeCustomerName (customerName) {
      this.$emit('changeCustomerName', customerName)
    },
  }
}
</script>
