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,29 @@
import http from "../../common/service/_"
export default {
state: {//存放状态
carCount: 0,
carList: []
},
getters: {//读取状态
GET_CARLIST(state) {
return state.carList
}
},
mutations: {
SET_CARLIST(state, data) {
state.carList = data
},
STE_COUNT(state,leng=1){
state.carCount += leng
}
},
actions: {
async PUT_SET_CARLIST({commit}) {
let res = await http.index.cartList();
console.log('actions', res)
// commit('STE_COUNT', res.length)
commit('SET_CARLIST', res)
}
}
}