1.0.3 • Published 6 years ago

vuexlog v1.0.3

Weekly downloads
5
License
ISC
Repository
github
Last release
6 years ago

vuexlog

vuex插件,能够记录变化的路径和变化的值

在每次commit的时候,会比较现在的状态和之前的状态,找出变化的路径和值,在终端用表格的形式打印出来,方便开发调试.

使用方法

npm install vuexlog

const log = require('vuexlog');
Vue.use(Vuex);
const debug = process.env.NODE_ENV !== 'production';
const Store = new Vuex.Store({
  state: store,
  mutations,
  actions,
  getters,
  strict: debug,
  plugins: debug ? [createLogger(), log] : []
})

实际使用效果

使用效果截图

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago