Files
ClassContent/历届学生/苏琪/项目练习/newApp/appFont/store/modules/city.js
2024-09-27 02:06:13 +08:00

17 lines
261 B
JavaScript

export default {
state: {
HotList: {}
},
// 帮我们写 state 里面的数据
mutations: {
SET_HOTLIST(state, list) {
state.HotList = list;
},
},
actions: {
getData({commit}) {
let list = [1,2,3,4,5,6,7];
commit("set_List",list)
}
}
}