import { setStore } from '@/utils/store';
// 定义所需的 mutations
const mutations = {
	SET_THEME:(state,color) => {
//		console.log(state,color);
		state.theme = color;
		setStore({name:'theme',content:state.theme});
	},
	SET_ONLINE_STATUS:(state,status)=>{
		state.status = status;
    },
    GET_ONLINE_STATUS:(state,status)=>{
		state.status = status;
    },
	 /* 是否有数据报表权限 */
	 SET_DATA_AUTH(state,bool) {
		state.dataAuth = bool;
	 }
    
};

export default mutations