import deepClone from 'clone'
// import axios from '../../http/request'
// import API from '../../http/api'

const defaultState = {

}
// 商品池
const state = deepClone(defaultState)

const mutations = {
  // 重新初始化 state
  resetState (state) {
    state = deepClone(defaultState)
  }
}

const actions = {
  // 获取商品池分页列表
  fetchCommodityPoolTable ({ commit, state }, param) {
    /**
     * 1. 发起异步请求
     * 2. 获得数据后再分发mutation, 改变state状态
    */
  }
}

export default {
  namespaced: true,
  state,
  actions,
  mutations
}
