<template>
  <admin :info="admin"></admin>
</template>
<script>
  import Admin from '~components/mobile/user/Admin.vue'
  export default {
    layout: 'mobile',
    components: {
      Admin
    },
    fetch ({store}) {
      return Promise.all([
        store.dispatch('loadUserWithAdmin', {uu: store.state.option.user.data.enterprise.enAdminuu})
      ])
    },
    computed: {
      admin () {
        return this.$store.state.option.infoWithAdmin.data
      }
    }
  }
</script>
