1.0.0 • Published 7 years ago
wc-vuex-snapshot v1.0.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); } }
1.0.0
7 years ago