Open ansidev opened 5 years ago
If you are using Nuxt.js
the vuex module is automatically created when you create a auth.js file in store folder.
To use it:
module.exports = {
modules: [
['nuxt-vuex-localstorage', {
localStorage: ['auth']
}]
]
}
Is it possible to rename the storage key?
Can a hierarchical structure be used?
$store.commit('group/filters/city', val)
I have a Vuex module which is located at
store/modules/auth.js
. How to add it tonuxt-vuex-localstorage
config?