0.0.5 • Published 5 years ago
vuex-plugins-persistence v0.0.5
Install
npm i vuex-plugins-persistence --save
Usage
import myPlugin from 'vuex-plugins-persistence'
const store = new Vuex.Store({
// ...
plugins: [myPlugin()],
});
config
const store = new Vuex.Store({
// ...
plugins: [myPlugin({
key: '存储的键名'
})],
});
这是一个轻量化、专注化的一个本地持久化插件