You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
906 B

  1. <template>
  2. <base-layout>
  3. <template #leftDrawerIcon>
  4. <v-app-bar-nav-icon @click="drawerLeft = !drawerLeft" />
  5. </template>
  6. <template #rightDrawerIcon>
  7. <v-app-bar-nav-icon @click="toggle" />
  8. </template>
  9. <template #leftDrawer>
  10. <v-navigation-drawer
  11. v-model="drawerLeft"
  12. app
  13. clipped
  14. color=""
  15. >
  16. <side-bar-left />
  17. </v-navigation-drawer>
  18. </template>
  19. <template #content>
  20. <nuxt />
  21. </template>
  22. </base-layout>
  23. </template>
  24. <script>
  25. import { mapMutations } from 'vuex'
  26. import BaseLayout from '~/layouts/BaseLayout'
  27. import SideBarLeft from '~/components/organisms/SideBarLeft'
  28. export default {
  29. components: {
  30. BaseLayout,
  31. SideBarLeft
  32. },
  33. data: () => ({
  34. drawerLeft: false,
  35. drawerRight: false
  36. }),
  37. methods: {
  38. ...mapMutations({
  39. toggle: 'sidebar/toggle'
  40. })
  41. }
  42. }
  43. </script>