const tagsViewRoutesModule = {
  namespaced: true,
  state: {
    tagsViewRoutes: [],
    collectMenuList: [],
  },
  mutations: {
    // 设置 TagsView 路由
    getTagsViewRoutes(state, data) {
      state.tagsViewRoutes = data;
    },
    // 设置 收藏的菜单 路由
    getCollectMenuList(state, data) {
      state.collectMenuList = data;
    },
  },
  actions: {
    // 设置 TagsView 路由
    async setTagsViewRoutes({ commit }, data) {
      commit('getTagsViewRoutes', data);
    },
    // 设置 TagsView 路由
    setCollectMenuList({ commit }, data) {
      commit('getCollectMenuList', data);
    },
  },
};

export default tagsViewRoutesModule;
