fix(视图): 修复编辑单个指标的数值格式化时其他指标也受影响

This commit is contained in:
wisonic-s 2024-05-08 15:47:28 +08:00
parent 059147df30
commit 29fa7cdad6

View File

@ -3715,7 +3715,7 @@ export default {
this.showValueFormatter = false
},
saveValueFormatter() {
const formatterItem = _.cloneDeep(this.valueFormatterItem)
const formatterItem = JSON.parse(JSON.stringify(this.valueFormatterItem))
const formatterCfg = formatterItem.formatterCfg
const ele = formatterCfg.decimalCount
if (ele === undefined || ele.toString().indexOf('.') > -1 || parseInt(ele).toString() === 'NaN' || parseInt(ele) < 0 || parseInt(ele) > 10) {