mutations.js 309 Bytes
import * as Types from './types';
import { find, set } from 'lodash';

export default {
  [Types.UPDATE_PRODUCT_DETAIL](state, { info }) {
    state.info = { ...state.info, ...info };
  },

  [Types.UPDATE_PRODUCT_FILTER](state, { filter }) {
    state.filterList = { ...state.filterList, ...filter };
  }
};