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.
18 lines
535 B
18 lines
535 B
import { defineStore } from "pinia";
|
|
import { ref } from "vue";
|
|
import * as R from "ramda";
|
|
import type { EquipmentStatusType } from '../services/globalCmd/cmdTypes'
|
|
|
|
export const useEquipmentStatusStore = defineStore("equipmentStatus", () => {
|
|
const equipmentStatus = ref<EquipmentStatusType[] | undefined>();
|
|
const setEquipmentStatus = (data: EquipmentStatusType[]) => {
|
|
if (!R.equals(equipmentStatus.value, data)) {
|
|
equipmentStatus.value = data;
|
|
}
|
|
};
|
|
|
|
return {
|
|
equipmentStatus,
|
|
setEquipmentStatus
|
|
}
|
|
})
|