export const state = () => ({
  parentCategoryList: [],  //一级分类
  categoryList: [],  //二级分类
  thCategoryList: [], // 三级分类
})

export const mutations = {
  initParentCategoryList (state, parentCategoryList) {
    state.parentCategoryList = parentCategoryList
  },
  reomveParentCategoryList (state) {
    state.parentCategoryList = []
  },
  initCategoryList (state, categoryList) {
    state.categoryList = categoryList
  },
  initThCategoryList (state, thCategoryList) {
    state.thCategoryList = thCategoryList
  },
  reomveCategoryList (state) {
    state.categoryList = []
  },
  reomveThCategoryList (state) {
    state.thCategoryList = []
  }
}
