store.commit({ type: 'increment', amount: 10 }). 当使用对象风格的提交方式,整个对象都作为载荷传给mutation 函数,因此处理函数保持不变:.
確定! 回上一頁