add localstorage state persistence

This commit is contained in:
2017-02-20 13:28:07 -07:00
parent e935db172a
commit df20bab9fb
3 changed files with 21 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
import Vue from 'vue';
import Vuex from 'vuex';
import createPersistedState from 'vuex-persistedstate';
import authentication from './authentication';
@@ -11,6 +12,9 @@ const store = new Vuex.Store({
modules: {
authentication,
},
plugins: [
createPersistedState(),
],
});
export default store;