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,6 @@
export default {
getCarArr: state => state.car.carList,
getOrderArr: state => state.car.orderList,
getTheme: state => state.setting.theme,
}

View File

@@ -0,0 +1,17 @@
import Vue from 'vue'
import Vuex from 'vuex'
import car from './modules/car'
import temp from './modules/public'
import setting from './modules/setting'
import getters from './getters'
Vue.use(Vuex)
export default new Vuex.Store({
modules: {
car,
temp,
setting
},
getters
})

View File

@@ -0,0 +1,20 @@
export default {
state: {
carList: [],
orderList: []
},
mutations: {
setCarList: (state, data) => {
state.carList = data
},
setOrderList: (state, data) => {
state.orderList = data
}
},
actions: {
async getCarList ({ commit }) {
let res = await this._vm.$http.car.getCarList();
commit('setCarList', res)
}
}
}

View File

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

View File

@@ -0,0 +1,8 @@
export default {
state: {
theme: 1
},
mutations: {
},
}