[vue] 你有写过vuex中store的插件吗?
Activity
lostimever commentedon Mar 10, 2020
Vuex
的store
接受plugins
选项,这个选项暴露出每次mutation
的钩子。Vuex
插件就是一个函数,它接收store
作为唯一参数:然后像这样使用:
官方文档