Commit 4749b762e1e3e90fc275f2b88d6a675c223e8976
1 parent
cbea82d7
fix: global alarm notify set duration to long && not a number
Showing
3 changed files
with
5 additions
and
5 deletions
... | ... | @@ -45,5 +45,5 @@ VITE_CONTENT_SECURITY_POLICY = false |
45 | 45 | # Alarm Notify Polling Interval Time |
46 | 46 | VITE_ALARM_NOTIFY_POLLING_INTERVAL_TIME = 5000 |
47 | 47 | |
48 | -# Alarm Notify Auto Close Time | |
49 | -VITE_ALARM_NOTIFY_DURATION = 5000 | |
48 | +# Alarm Notify Auto Close Time Unit is Second | |
49 | +VITE_ALARM_NOTIFY_DURATION = 5 | ... | ... |
... | ... | @@ -46,5 +46,5 @@ VITE_CONTENT_SECURITY_POLICY = false |
46 | 46 | # Alarm Notify Polling Interval Time |
47 | 47 | VITE_ALARM_NOTIFY_POLLING_INTERVAL_TIME = 60000 |
48 | 48 | |
49 | -# Alarm Notify Auto Close Time | |
50 | -VITE_ALARM_NOTIFY_DURATION = 5000 | |
49 | +# Alarm Notify Auto Close Time Unit is Second | |
50 | +VITE_ALARM_NOTIFY_DURATION = 5 | ... | ... |
... | ... | @@ -44,7 +44,7 @@ export function useAlarmNotify(params: UseAlarmNotifyParams = {}) { |
44 | 44 | |
45 | 45 | notification.open({ |
46 | 46 | message: '设备告警', |
47 | - duration, | |
47 | + duration: Number(duration), | |
48 | 48 | key, |
49 | 49 | description: h('div', {}, [ |
50 | 50 | h('div', { style: { marginRight: '5px' } }, [ | ... | ... |