官方文档: 链接 报错: TypeError: Cannot read property ‘setAll’ of undefined" //访问不到数据还报错了 解决方式: this.$store.commit(‘setAll’,‘参数’)才能访问mutations中定义的方法,直接访问不行