feat: current-alarms-store & move ThemeSwitch
This commit is contained in:
12
src/stores/current-alarms.ts
Normal file
12
src/stores/current-alarms.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { defineStore } from 'pinia';
|
||||
import { ref } from 'vue';
|
||||
|
||||
export const useCurrentAlarmsStore = defineStore('ndm-current-alarms-store', () => {
|
||||
const currentAlarmCount = ref(0);
|
||||
const needReload = ref(false);
|
||||
|
||||
return {
|
||||
currentAlarmCount,
|
||||
needReload,
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user