This commit is contained in:
2025-11-18 13:34:36 +08:00
parent a28c12478f
commit b362b08e6f

View File

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