Skip to content

Instantly share code, notes, and snippets.

View egoson's full-sized avatar
🏠
Working from home

egoson

🏠
Working from home
  • Ulyanovsk
View GitHub Profile
├── functions
| ├── searchAddress
| | ├── index.js
| | └── ...
| └── ...
|
|
├── layers
| ├── request
| | ├── axios.js
@egoson
egoson / gist:0eb003e3a2b16e6758249d8cb037fe22
Last active November 12, 2021 09:30
event handler for vuex module
// mutationTypes.js
export default {
setUser: '[USER] Set User',
removeUser: '[USER] Remove User'
}
// userModule.js
import mutationTypes form './mutationTypes'
export default {
user: [
{
id: 1,
name: 'Michel',
},
{
id: 2,
name: 'Peter',
},
{