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
874 B

import Vue from 'vue';
import Vuex from 'vuex';
4 months ago
Vue.use(Vuex)
export default new Vuex.Store({
state: {
showSidebar: false,
showFooter:false,
showHeader:false,
menuList:[],//目录菜单
showBreadcrumb:false,//是否展示面包屑
},
actions: {
SET_HEADER({ commit }) {
commit('SET_HEADER');
},
SET_SIDEBAR({ commit }) {
commit('SET_SIDEBAR');
},
SET_FOOTER({ commit }) {
commit('SET_FOOTER');
},
SHOW_BREAD({ commit }) {
commit('SHOW_BREAD');
},
4 months ago
},
mutations: {
SET_SIDEBAR(state, show) {
state.showSidebar = show;
},
SET_FOOTER(state, show) {
state.showFooter = show;
},
SET_HEADER(state, show) {
state.showHeader = show;
},
SHOW_BREAD(state, show) {
state.showBreadcrumb = show;
}
},
getters: {
4 months ago
},
4 months ago
modules: {
}
})