17 lines
261 B
JavaScript
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)
|
|
}
|
|
}
|
|
} |