mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-30 13:11:08 -04:00 
			
		
		
		
	init crater
This commit is contained in:
		
							
								
								
									
										13
									
								
								resources/assets/js/store/modules/user/actions.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								resources/assets/js/store/modules/user/actions.js
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,13 @@ | ||||
| import * as types from './mutation-types' | ||||
| import Ls from '@/services/ls' | ||||
|  | ||||
| export const updateCurrentUser = ({ commit, dispatch, state }, data) => { | ||||
|   return new Promise((resolve, reject) => { | ||||
|     axios.post('/api/hq/users', data).then((response) => { | ||||
|       commit(types.UPDATE_CURRENT_USER, response.data.user) | ||||
|       resolve(response) | ||||
|     }).catch((err) => { | ||||
|       reject(err) | ||||
|     }) | ||||
|   }) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user