"src/layouts/src/layouts/home" did not exist on "c2fdac336a008588d03fd6328b7cc1249215b036"
Index.vue 931 Bytes
Newer Older
Yoelvis Gonzalez's avatar
Yoelvis Gonzalez committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<template>
  <v-app>
    <home-app-bar />
    <home-drawer
      v-model="drawer"
      :items="items"
    />

    <home-view />

    <home-footer />
  </v-app>
</template>

<script>
Yoelvis Gonzalez's avatar
Yoelvis Gonzalez committed
16
  import { mapGetters } from 'vuex'
Yoelvis Gonzalez's avatar
Yoelvis Gonzalez committed
17 18 19 20 21 22 23 24 25 26 27
  export default {
    name: 'HomeLayout',

    components: {
      HomeAppBar: () => import('@/layouts/home/AppBar'),
      HomeFooter: () => import('@/layouts/home/Footer'),
      HomeView: () => import('@/layouts/home/View'),
      HomeDrawer: () => import('@/layouts/home/Drawer'),
    },
    data: () => ({
      drawer: !null,
Yoelvis Gonzalez's avatar
Yoelvis Gonzalez committed
28 29 30 31
      links: [
        { name: 'Control', type: 'default', icon: 'mdi-view-dashboard' },
        { name: 'Centros', type: 'admin', icon: 'mdi-hospital-building' },
        { name: 'Pacientes', type: 'default', icon: 'mdi-account-multiple' },
Yoelvis Gonzalez's avatar
Yoelvis Gonzalez committed
32 33
      ],
    }),
Yoelvis Gonzalez's avatar
Yoelvis Gonzalez committed
34 35 36 37 38 39
    computed: {
      ...mapGetters(['user']),
      items () {
        return this.links
      },
    },
Yoelvis Gonzalez's avatar
Yoelvis Gonzalez committed
40 41
  }
</script>