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.
|
|
|
import Vue from 'vue';
|
|
|
|
import Vuex from 'vuex';
|
|
|
|
|
|
|
|
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');
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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: {
|
|
|
|
},
|
|
|
|
|
|
|
|
modules: {
|
|
|
|
}
|
|
|
|
})
|