【文件属性】:
文件名称:vuex-local-state-将'localState / sessionState'选项添加到vuex。 使用localStorage保持Vuex状态。-Vue.js开发
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-27 23:03:06
Vue.js Vuex Utilities
vuex-local-state将localStorage注入vuex安装$ npm install vuex-local-state-保存API new VuexLocalState(storeOptions,[conf]);
conf def vuex-local-state将localStorage注入vuex安装$ npm install vuex-local-state-保存API new VuexLocalState(storeOptions,[conf]);
conf默认值:{名称空间:'_vued',存储:window.localStorage,键:'localState',}示例用法import * as'vue from'vue';
从'vuex'导入*作为Vuex;
从'vuex-local-state'导入*作为VuexLocalState;
从'./subModule.js'导入subModule;
const storeOptions = {// https://vuex.vuejs.org/zh-cn/state.html sta
【文件预览】:
vuex-localState-master
----README.md(2KB)
----test()
--------index.html(2KB)
----fis-conf.js(668B)
----LICENSE(1KB)
----package.json(633B)
----index.js(4KB)
----index.es(4KB)
----.eslintrc.json(706B)