first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
export default {
GET_HOTLIST: state => state.city.HotList,
}

View File

@@ -0,0 +1,13 @@
import Vue from 'vue';
import Vuex from 'vuex';
import getters from "./getters.js"
import city from "./modules/city.js"
import bookinfo from "./modules/bookinfo.js"
Vue.use(Vuex);
const store = new Vuex.Store({
modules: { city , bookinfo },
getters
})
export default store;

View File

@@ -0,0 +1,10 @@
export default {
state: {
info: "这是详情"
},
mutations: {
set_info(state, par) {
state.info = par;
}
}
}

View File

@@ -0,0 +1,17 @@
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)
}
}
}