vuex 中插件的编写案例解析 一、官方文档1、第一步constmyPlugin=store=>{//当store初始化后调用store.subscribe((mutation,state)=> 插件的编写