Advertisement
sayhicoelho

Peter / Vuex

Sep 17th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. import router from '../router'
  4. import firebase from '../config/firebase'
  5.  
  6. Vue.use(Vuex)
  7.  
  8. const state = {
  9.   ...
  10.   fullscreenDialog: false
  11. }
  12.  
  13. const getters = { }
  14.  
  15. const mutations = {
  16.   ...
  17.   TOGGLE_FULLSCREEN_DIALOG (state, payload) {
  18.     state.fullscreenDialog = !!payload
  19.   }
  20. }
  21.  
  22. const actions = {
  23.   ...
  24. }
  25.  
  26. export default new Vuex.Store({ state, getters, mutations, actions })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement