const getRouteName = (state, payload) => {
	state.routeName = payload.routeName;
}

const setShowLoginBox = (state, payload) => {
	state.showLoginBox = payload.showLoginBox;
}

const getIntoRegister = (state, payload) => {
	state.intoRegister  = payload.intoRegister;
}

const getToken = (state, payload) => {
	state.token  = payload.token;
}

const getRole = (state, payload) => {
	state.role  = payload.role;
}

const getPageType = (state, payload) => {
	state.pageType  = payload.pageType;
}

//  进入编辑
const getShowEdit = (state, payload) => {
	state.show_edit  = payload.show_edit;
}

const getOpenMoreModel = (state : object, payload : object) => {
	state.openOtherModel_1 = payload.openOtherModel_1;
}

export const mutations =  {
	getRouteName,
	setShowLoginBox,
	getIntoRegister,
	getToken,
	getRole,
	getPageType,
	getShowEdit,
	getOpenMoreModel
}
