import Cookies from 'js-cookie';

export default{
   
    userSuccess: (state, resp) => {
        state.user = resp;
       Cookies.set('user', JSON.stringify(resp), { expires: 365 });
       // Vue.set(state, 'data', resp);
        //Vue.set(state, 'profile', resp);
       

  },
  
userLogout: (state) => {
    state.user = null;
    Cookies.remove('user');
}

}