vuex-persisted-shared-state:使用localStorage保持Vuex状态并在选项卡之间共享

时间:2021-05-01 04:30:22
【文件属性】:
文件名称:vuex-persisted-shared-state:使用localStorage保持Vuex状态并在选项卡之间共享
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-01 04:30:22
vuejs vue vuejs2 vuex localstorage Vuex持久共享状态 使用状态并在选项卡之间共享。 要求 ( +) ( +) 安装 $ npm install vuex-persisted-shared-state 或者 $ yarn add vuex-persisted-shared-state 用法 import persistedSharedState from "vuex-persisted-shared-state" ; const store = new Vuex . Store ( { // ... plugins : [ persistedSharedState ( { 'cart' : 'SET_CART' , } ) , ] } ) ; 原料药 persistedSharedState(mutations, options =
【文件预览】:
vuex-persisted-shared-state-master
----.gitignore(59B)
----README.md(1KB)
----package.json(1KB)
----dist()
--------vuex-persisted-shared-state.js(2KB)
----src()
--------index.js(3KB)

网友评论