2.0.7 • Published 2 years ago

vuex-persist-data v2.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Install

npm install vuex-persist-data --save

Use

import persistData from 'vuex-persist-data'

Vue.use(Vuex)
export default new Vuex.Store({
  modules: {
    userInfo,
    menu
  },
  plugins: [
    persistData({
      storage: window.localStorage, // 存储方式  localStorage 或者 sessionStorage       required   choose one for storage data
      timeOut: 30 * 60 * 1000, // 毫秒数       不是必须项                               not-required  setting millisecond  for  clear  Expired data
      module: ['userInfo'] // 需配置存储的模块  不配置默认存储全部    不是必须项           not-required  default for storage all data   setting this form storage module
    })
  ]
})
2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago