Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Vue from 'vue'
- import Vuex from 'vuex'
- import router from '../router'
- import firebase from '../config/firebase'
- Vue.use(Vuex)
- const state = {
- ...
- fullscreenDialog: false
- }
- const getters = { }
- const mutations = {
- ...
- TOGGLE_FULLSCREEN_DIALOG (state, payload) {
- state.fullscreenDialog = !!payload
- }
- }
- const actions = {
- ...
- }
- export default new Vuex.Store({ state, getters, mutations, actions })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement