suerprisePlus
2024-10-14 f521ebc2551d468c4c478783a18d4b0714394d61
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import Vue from 'vue'
import Vuex from 'vuex'
 
Vue.use(Vuex)
 
 const mapStore= new Vuex.Store({
  //数据,相当于data
  state: {
    regionWeather:null,
  },
  getters: {
    
  },
  //里面定义方法,操作state方发
  mutations: {
    
  },
  // 操作异步操作mutation
  actions: {
    
  },
  modules: {
    
  },
})
export default mapStore;