fix: 右上角告警数按钮提示跳转
This commit is contained in:
@@ -24,6 +24,11 @@ function fnClick({ key }: MenuInfo) {
|
||||
}
|
||||
}
|
||||
|
||||
/**告警数按钮提示跳转 */
|
||||
function fnClickAlarm() {
|
||||
router.push({ path: '/faultManage/active-alarm' });
|
||||
}
|
||||
|
||||
/**改变多语言 */
|
||||
function fnChangeLocale(e: any) {
|
||||
changeLocale(e.key);
|
||||
@@ -32,14 +37,18 @@ function fnChangeLocale(e: any) {
|
||||
|
||||
<template>
|
||||
<a-space :size="12" align="center">
|
||||
<a-button type="text">
|
||||
<a-button type="text" @click="fnClickAlarm">
|
||||
<template #icon>
|
||||
<a-badge :count="useAlarmStore().activeAlarmTotal" :overflow-count="99" status="warning">
|
||||
<a-badge
|
||||
:count="useAlarmStore().activeAlarmTotal"
|
||||
:overflow-count="99"
|
||||
status="warning"
|
||||
>
|
||||
<BellOutlined />
|
||||
</a-badge>
|
||||
</template>
|
||||
</a-button>
|
||||
|
||||
|
||||
<a-tooltip>
|
||||
<template #title>全屏显示</template>
|
||||
<a-button type="text" @click="toggle">
|
||||
|
||||
Reference in New Issue
Block a user