Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

polysoft-nafmii / polysoft-h5

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • polysoft-h5
  • src
  • store
  • modules
  • search.js
  • amateur's avatar
    修改搜索历史记录 · 46a35dca
    amateur committed May 20, 2021
    46a35dca Browse Files
search.js 417 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23


export default {
    namespaced: true,
    state: {
        Home: []
    },
    mutations: {
        MSetHomeSearch (state, datas) {
            state.Home = datas
        },
        MCleanHistory (state, stateKey) {
            state[stateKey] = []
        }
    },
    actions: {
        ACleanHistory ({ commit }, stateKey) {
            commit('MCleanHistory', stateKey)
        }
    },
    modules: {
    }
}