@ -258,8 +258,8 @@ export default {
lineHeight: 20,
color: '#fff',
formatter: params => {
const childText =
params.data.children?.length > 0 ? `${params.data.children.length}个子件` : '';
const childText =params.data.quota>=0?`${params.data.quota}个`:''
console.log(999999,params)
// 去掉模板字符串缩进,用\n换行,避免多余空白
return `${params.name}${childText ? '\n' + childText : ''}`;
},