id (state, user) { state.mystatus = user.id }, following (state, user) { state.following = user.following }, follower (state, user) { state.follower = user.follower }, anum (state, user) { state.anum = user.anum } 是否可以寫成 id (state, user) { state.mystatus = user.id state.following = user.following state.follower = user.follower state.anum = user.anum }如果可以應(yīng)該是什么格式? 沒查到這種范本 自己用webstorm寫會(huì)提示語(yǔ)法報(bào)錯(cuò) 不知道是不是eslint的問(wèn)題
vuex中mutations是否可以一次更改很多值
婷婷同學(xué)_
2018-09-03 10:06:33