Store中的代码state: const state = { lastedList: [], moreLastedList: [],getters: lastedList: state => { return state.lastedList }, moreLastedList: state => { return state.moreLastedList },mutations: [types.CONCAT_LASTED_LIST] (state) { state.lastedList.concat(state.moreLastedList); }诉求:lastedList是以最新时间排列的数据列表,moreList是下一次加载的数据,moreList需要append到lastedList的后面。我这么写执行后,lastedList并没有改变?错在哪里?怎么写才能改变呢?
添加回答
举报
0/150
提交
取消