vuex-plugins-persistence

0.0.5 • Public • Published

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: '存储的键名'
    })],
});

这是一个轻量化、专注化的一个本地持久化插件

Package Sidebar

Install

npm i vuex-plugins-persistence

Weekly Downloads

0

Version

0.0.5

License

ISC

Unpacked Size

8.46 kB

Total Files

6

Last publish

Collaborators

  • qiao195423