消毒机前端代码
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.

32 lines
785 B

2 years ago
2 years ago
2 years ago
  1. import { defineStore } from 'pinia'
  2. export const useTestStore = defineStore({
  3. id: 'test', // id必填,且需要唯一
  4. // state
  5. state: () => {
  6. return {
  7. // 加液蠕动泵开关
  8. feedingPeristalticPumpStatus: true,
  9. // 喷液蠕动泵开关
  10. sprayPeristalticPump: false,
  11. // 空压机开关
  12. airCompressor: false,
  13. // 风机开关
  14. draughtFan: false,
  15. }
  16. },
  17. // actions
  18. actions: {
  19. updateFeedingPeristalticPumpStatus(status) {
  20. this.feedingPeristalticPumpStatus = status
  21. },
  22. updateSprayPeristalticPump(status) {
  23. this.sprayPeristalticPump = status
  24. },
  25. updateAirCompressor(status) {
  26. this.airCompressor = status
  27. },
  28. updateDraughtFan(status) {
  29. this.draughtFan = status
  30. },
  31. },
  32. })