Last active
May 5, 2019 01:02
-
-
Save gdbate/efbcd6d9ac855352ec3189f560cfcbd0 to your computer and use it in GitHub Desktop.
Structuring Vuex Modules - Maintaining Record Order - Adding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| store.actions = { | |
| all({commit}, all){ | |
| for(let i in all) | |
| commit('add', {...all[i], order: i}) | |
| }, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment