fix: label为布尔时,显示错误 (#10934)

Co-authored-by: hezhihang <hezhihang@baidu.com>
This commit is contained in:
hzh11012 2024-09-19 15:33:47 +08:00 committed by GitHub
parent ad77f24feb
commit f21be3d37b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,8 @@ export function labelToString(label: any): string {
return label;
} else if (type === 'number') {
return `${label}`;
} else if (label === 'boolean') {
return String(label);
}
if (isPlainObject(label)) {