15 lines
332 B
TypeScript
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,
|
|
};
|
|
});
|