不能。 而且从本质上来讲,也不应该在 getters 里面触发 state 的更新,只应该做数据的获取。 getters的四个参数 (state, getters, rootState, rootGetters), 也没有提供相应操作
不能。 而且从本质上来讲,也不应该在 getters 里面触发 state 的更新,只应该做数据的获取。
getters的四个参数 (state, getters, rootState, rootGetters), 也没有提供相应操作