npm.io
1.0.0 • Published 9 years ago

wc-vuex-snapshot

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0

使用方式

1 在入口文件, 一般是 main.js 中 import VuexSnapshot from 'wc-vuex-snapshot' Vue.use(VuexSnapshot, store);

2 在 store.js 里面 import {updateSnapshot} from 'wc-vuex-snapshot'

在 mutations 增加一个函数 mutaions { snapshot (state) { updateSnapshot(state); } }