Files
ndm-web-client/src/stores/alarm.ts
2025-11-25 16:51:20 +08:00

15 lines
332 B
TypeScript

import type { LineAlarmCounts } from '@/apis';
import { defineStore } from 'pinia';
import { ref } from 'vue';
export const useAlarmStore = defineStore('ndm-alarm-store', () => {
const lineAlarmCounts = ref<LineAlarmCounts>({});
const unreadAlarmCount = ref(0);
return {
lineAlarmCounts,
unreadAlarmCount,
};
});