fix(manager): 修复团队异常预警中可选链操作符的使用
处理原始数据可能为undefined的情况,使用可选链操作符避免潜在的错误
This commit is contained in:
@@ -146,7 +146,7 @@ const weekTotalData = ref({
|
||||
pay_deposit_to_money_rate: {},
|
||||
group_funnel: {},
|
||||
group_call_duration: {},
|
||||
});
|
||||
})
|
||||
// 团队异常预警
|
||||
const groupAbnormalResponse = ref({})
|
||||
async function TeamGetGroupAbnormalResponse() {
|
||||
@@ -161,9 +161,9 @@ async function TeamGetGroupAbnormalResponse() {
|
||||
let alertId = 1
|
||||
|
||||
// 处理严重超时异常人员
|
||||
const timeoutPersons = rawData.erious_timeout_rate_abnorma || []
|
||||
const timeoutPersons = rawData?.serious_timeout_rate_abnorma || []
|
||||
// 处理表格填写异常人员
|
||||
const fillingPersons = rawData.table_filling_abnormal || []
|
||||
const fillingPersons = rawData?.table_filling_abnormal || []
|
||||
|
||||
// 为每个异常人员生成独立的预警消息
|
||||
|
||||
|
||||
Reference in New Issue
Block a user