Vuex mutitons和actions初使用详解 Mutationsmutations必须是同步函数,为什么?举个例子: 官方案例mutations:{someMutation(state){api. mutitons