Commit 6401f7cedaab4826554179fb9121f99f71d98af4

Authored by ww
1 parent 5c00e249

perf: useAlarmNotify default interval as 60 second

... ... @@ -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];
... ...
  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>
... ...