import defaultSettings from "@/settings";
const state = {
headerTitle: defaultSettings.name.zh,
fixedHeader: defaultSettings.fixedHeader,
sidebarLogo: defaultSettings.sidebarLogo,
userblockShow: defaultSettings.userblockShow,
isFullScreen: defaultSettings.isFullScreen,
fullScreenShow: defaultSettings.fullScreenShow,
};
const mutations = {
changeFullSceen(state, boolean) {
state.isFullScreen = boolean;
},
};
const actions = {
handleFullScreen(context, boolean) {
context.commit("changeFullSceen", boolean);
},
};
export default {
namespaced: true,
state,
mutations,
actions,
};
-
wanli authorede339fd7a