Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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状态持久化功能
- Host: GitHub
- URL: https://github.com/xiaojundebug/vuex-state-persister
- Owner: xiaojundebug
- License: mit
- Created: 2018-10-10T02:18:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-21T05:23:17.000Z (over 5 years ago)
- Last Synced: 2023-07-31T11:07:49.199Z (over 1 year ago)
- Topics: persist, vue, vuex
- Language: JavaScript
- Size: 1.95 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vuex-state-persister
实现一个简单的 vuex 状态持久化功能
## 使用方式
```javascript
import createStatePersister from '../plugins/vuex-state-persister';
// ...
new Vuex.Store({
// ...
plugins: [createStatePersister]
});
// ...
```