Commit 6401f7cedaab4826554179fb9121f99f71d98af4
1 parent
5c00e249
perf: useAlarmNotify default interval as 60 second
Showing
2 changed files
with
14 additions
and
2 deletions
... | ... | @@ -22,8 +22,8 @@ export enum AlarmPermissionKey { |
22 | 22 | export function useAlarmNotify(params: UseAlarmNotifyParams = {}) { |
23 | 23 | const { |
24 | 24 | alarmNotifyStatus = AlarmStatus.ACTIVE_UN_ACK, |
25 | - interval = import.meta.env.VITE_ALARM_NOTIFY_POLLING_INTERVAL_TIME, | |
26 | - duration = import.meta.env.VITE_ALARM_NOTIFY_DURATION, | |
25 | + interval = import.meta.env.VITE_ALARM_NOTIFY_POLLING_INTERVAL_TIME || 60000, | |
26 | + duration = import.meta.env.VITE_ALARM_NOTIFY_DURATION || 5, | |
27 | 27 | color = 'orange', |
28 | 28 | } = params; |
29 | 29 | const alarmNotifyStatusMean = AlarmStatusMean[alarmNotifyStatus]; | ... | ... |
src/views/configuration/center/CardMode.vue
0 → 100644
1 | +<script setup lang="ts"> | |
2 | + import {} from '/@/components/'; | |
3 | +</script> | |
4 | + | |
5 | +<template> | |
6 | + <CardList :params="params" :api="demoListApi" @get-method="getMethod" @delete="handleDel"> | |
7 | + <template #header> | |
8 | + <Button type="primary" color="error"> 按钮1 </Button> | |
9 | + <Button type="primary" color="success"> 按钮2 </Button> | |
10 | + </template> | |
11 | + </CardList> | |
12 | +</template> | ... | ... |