Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

glsx / gl_tape

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 3
  • 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
  • gl_tape
  • store
  • modules
  • sys.js
  • 前端's avatar
    合并 · f2474c3b
    前端 committed Jan 14, 2025
    f2474c3b
sys.js 378 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
export default {
  state() {
    return {
      isInBackgound: false
    }
  },
  mutations: {
    SET_BACKGROUND_STATE(state, value) {
      state.isInBackgound = value
    }
  },
  actions: {
    setBackgroundState({ commit }, value) {
      uni.$logger.local.info(`【==== ${['切回', '切出'][+value]} ====】 APP`)
      commit('SET_BACKGROUND_STATE', value)
    }
  }
}