消毒机前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

37 lines
882 B

import { defineStore } from 'pinia'
export const useSettingStore = defineStore({
id: 'setting', // id必填,且需要唯一
// state
state: () => {
return {
// 设置当前日期
currentDate: [],
// 设置当前时间
currentTime: [],
// 设置加液泵的参数
addLiquidConfigVal: 0,
// 设置喷液泵的参数
sprayLiquidConfigVal: 0,
// 首屏初始化
initLoading: true,
}
},
// actions
actions: {
updateInitLoading() {
this.initLoading = false
},
updateCurrentDate(currentDate) {
this.currentDate = currentDate
},
updateCurrentTime(currentTime) {
this.currentTime = currentTime
},
changeAddLiquidConfigVal(val) {
this.addLiquidConfigVal = val
},
changeSprayLiquidConfigVal(val) {
this.sprayLiquidConfigVal = val
},
},
})