{"size": 289, "ext": "js", "max_stars_repo_path": "src/store/store.js", "max_stars_repo_name": "haohuihai/tour", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/store/store.js", "max_issues_repo_name": "haohuihai/tour", "max_issues_repo_issues_event_min_datetime": "2021-05-11T18:26:07.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T07:14:34.000Z", "max_forks_repo_path": "src/store/store.js", "max_forks_repo_name": "haohuihai/tour", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 12.5652173913, "max_line_length": 31, "alphanum_fraction": 0.5605536332}
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state:{
    city:'上海',
    index:0
  },
  actions:{
    change(ctx,city){
      ctx.commit('change',city)
    }
  },
  mutations:{
    change(state,city){
      state.city = city
    }
  }
})

