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,24 @@
import carService from '../../service/carService'
export default {
state: {
carList: []
},
mutations: {
SET_CARLIST (state, data) {
state.carList = data
}
},
actions: {
async getCarList({ commit }) {
let res = await (new carService()).getCarList();
console.log("actions getCarList ===: ", res)
commit("SET_CARLIST", res)
},
async addCar({ commit }, params) {
let res = await (new carService()).addCar(params);
console.log("actions addCar ===: ", res)
}
}
}

View File

@@ -0,0 +1,11 @@
export default {
state: {
},
mutations: {
},
actions: {
}
}

View File

@@ -0,0 +1,11 @@
export default {
state: {
theme: 'red'
},
mutations: {
},
actions: {
}
}