fix: 修复全部阶段客户数量计算逻辑
当customersList为空时,使用props.data中的全部阶段数据作为后备值
This commit is contained in:
@@ -356,7 +356,7 @@ const emit = defineEmits(['stage-select', 'select-contact']);
|
||||
const totalCustomers = computed(() => {
|
||||
// 全部阶段的数量就是前6个阶段的数量
|
||||
if (props.customersList?.length > 0) return props.customersList.length;
|
||||
|
||||
|
||||
// 如果没有实际数据,使用props.data中的数据作为后备
|
||||
if (props.data['全部']) return props.data['全部'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user