Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

杨树贤 / kefu_server

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Find file
Normal viewHistoryPermalink
Switch branch/tag
  • kefu_server
  • ui
  • kefu_client
  • src
  • store
  • mutations.js
mutations.js 222 Bytes
keith's avatar
update
98c8f64f
 
keith committed 5 years ago
1 2
export default {
    updateState(state, newObj){
chenxianqi's avatar
update code
825ca73b
 
chenxianqi committed 5 years ago
3
      var oldState = state
keith's avatar
update
98c8f64f
 
keith committed 5 years ago
4 5
      for (var i in newObj) {
        if(newObj[i] == undefined) continue
chenxianqi's avatar
update code
825ca73b
 
chenxianqi committed 5 years ago
6
        oldState[i] = newObj[i]
keith's avatar
update
98c8f64f
 
keith committed 5 years ago
7
      }
chenxianqi's avatar
update code
825ca73b
 
chenxianqi committed 5 years ago
8 9 10

      state = oldState

keith's avatar
update
98c8f64f
 
keith committed 5 years ago
11 12
    }
}