diff --git a/core/frontend/src/views/chart/view/ChartEdit.vue b/core/frontend/src/views/chart/view/ChartEdit.vue index a78498f7d4..4141ffed15 100644 --- a/core/frontend/src/views/chart/view/ChartEdit.vue +++ b/core/frontend/src/views/chart/view/ChartEdit.vue @@ -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) { diff --git a/core/frontend/src/views/chart/view/DrillPath.vue b/core/frontend/src/views/chart/view/DrillPath.vue index 053645ba59..671a466862 100644 --- a/core/frontend/src/views/chart/view/DrillPath.vue +++ b/core/frontend/src/views/chart/view/DrillPath.vue @@ -16,7 +16,10 @@ class="drill-item" @click.native="drillJump(index + 1)" > - {{ filter.value[0] }} + {{ filter.value[0] }} @@ -97,6 +100,8 @@ export default { margin: 0!important; } .drill-item{ + max-width: 120px; + overflow: hidden; cursor: pointer; }