修bug
This commit is contained in:
@@ -378,8 +378,8 @@ export default {
|
||||
page: 1, // 确保分页参数完整
|
||||
page_size: 1 // 只需获取总数,所以page_size设为1
|
||||
});
|
||||
if (response && response.pagination) {
|
||||
unresolvedAlarmCount.value = response.pagination.total || 0;
|
||||
if (response && response.data && response.data.pagination) {
|
||||
unresolvedAlarmCount.value = response.data.pagination.total || 0;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取未解决告警数量失败:', error);
|
||||
|
||||
Reference in New Issue
Block a user