vuex commit 传参数,传递多个参数
commit(types.CHANGE_SEATSORTING, {res, res1})
// 使用
[types.CHANGE_SEATSORTING] (state, data) {
state.selectedSeatAttr = data.res
state.layoutSeatList = data.res1
原文链接:https://blog.csdn.net/tangkthh/article/details/91529948
网友评论