Created
March 10, 2018 15:59
-
-
Save kasvith/3c50869333bf49ea18365f7354078226 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
import Vue from 'vue' | |
import Vuex from 'vuex' | |
Vue.use(Vuex) | |
export const store = new Vuex.Store({ | |
state: { | |
layout: 'simple-layout' | |
}, | |
mutations: { | |
SET_LAYOUT (state, payload) { | |
state.layout = payload | |
} | |
}, | |
getters: { | |
layout (state) { | |
return state.layout | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment