Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xiaojundebug/vuex-state-persister

实现一个简单的vuex状态持久化功能
https://github.com/xiaojundebug/vuex-state-persister

persist vue vuex

Last synced: 21 days ago
JSON representation

实现一个简单的vuex状态持久化功能

Awesome Lists containing this project

README

        

# vuex-state-persister

实现一个简单的 vuex 状态持久化功能

## 使用方式

```javascript
import createStatePersister from '../plugins/vuex-state-persister';
// ...
new Vuex.Store({
// ...
plugins: [createStatePersister]
});
// ...
```