mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
fix(图表): 修复透视表列维度为空时带格式导出失败
This commit is contained in:
@@ -1878,6 +1878,9 @@ function extractNumber(formattedValue: string, formatterCfg: BaseFormatter): {
|
||||
value: number
|
||||
numFmt: string
|
||||
} | string {
|
||||
if (!formatterCfg) {
|
||||
return formattedValue
|
||||
}
|
||||
let result = formattedValue
|
||||
if (formatterCfg.type === 'percent') {
|
||||
result = result.slice(0, -1) // 去掉百分号
|
||||
|
||||
Reference in New Issue
Block a user