mutations 选项中定义修改状态的方法. // 这些方法接收state作为第1个参数. mutations: {. increment(state) {. state.counter++;. } ...
確定! 回上一頁