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.
|
|
import { defineStore } from 'pinia' export const useTestStore = defineStore({ id: 'test', // id必填,且需要唯一
// state
state: () => { return { // 加液蠕动泵开关
feedingPeristalticPumpStatus: true, // 喷液蠕动泵开关
sprayPeristalticPump: false, // 空压机开关
airCompressor: false, // 风机开关
draughtFan: false, } }, // actions
actions: { updateFeedingPeristalticPumpStatus(status) { this.feedingPeristalticPumpStatus = status }, updateSprayPeristalticPump(status) { this.sprayPeristalticPump = status }, updateAirCompressor(status) { this.airCompressor = status }, updateDraughtFan(status) { this.draughtFan = status }, }, })
|