admin.vue 467 B

12345678910111213141516171819202122
  1. <template>
  2. <info :info="admin"></info>
  3. </template>
  4. <script>
  5. import {Info} from '~components/mobile'
  6. export default {
  7. layout: 'mobile',
  8. components: {
  9. Info
  10. },
  11. fetch ({store}) {
  12. return Promise.all([
  13. store.dispatch('loadUserWithAdmin', {uu: store.state.option.user.data.enterprise.enAdminuu})
  14. ])
  15. },
  16. computed: {
  17. admin () {
  18. return this.$store.state.option.infoWithAdmin.data
  19. }
  20. }
  21. }
  22. </script>