-
-
Save nejtr0n/a55d37d39af36af6e27d78ee186bf803 to your computer and use it in GitHub Desktop.
Revisions
-
stephanepericat renamed this gist
Jan 12, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
stephanepericat created this gist
Jan 12, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,37 @@ export default { namespaced: true, state: { firstname: 'John', lastname: 'Doe', email: '[email protected]' }, getters: { fullname: state => `${state.firstname} ${state.lastname}` }, mutations: { updatemail(state, email) { state.email = email; } }, actions: { emailupdate(context, email) { context.commit('updatemail', email); } }, modules: { account: { state: { type: 'Admin', created: '2018-01-12 21:33:54 UTC', active: true } }, posts: { namespaced: true, state: { articles: [...] } } } };