消毒机设备
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.

20 lines
438 B

  1. import { defineStore } from 'pinia'
  2. import { ref } from 'vue'
  3. export const useSealStore = defineStore('seal', () => {
  4. const sealState = ref('idle')
  5. const sealInfo = ref<Seal.SealStateItem>({
  6. pressure: '0',
  7. workState: 'idle',
  8. workStateDisplay: '空闲',
  9. })
  10. const updateSealInfo = (dataInfo: Seal.SealStateItem) => {
  11. sealInfo.value = dataInfo
  12. }
  13. return {
  14. sealState,
  15. sealInfo,
  16. updateSealInfo,
  17. }
  18. })