summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhangyu <[email protected]>2021-03-26 14:29:01 +0800
committerzhangyu <[email protected]>2021-03-26 14:29:01 +0800
commit39306477eeb0c6913eaafda527ac6de5a8c68684 (patch)
tree0522c16de591809c3550070192ce0a37a7ce9672
parent2480e5350736bc7803035eca1807c967cb506175 (diff)
feat:修改chartType为url时 不显示unit
-rw-r--r--nezha-fronted/src/components/page/dashboard/chartBox.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/nezha-fronted/src/components/page/dashboard/chartBox.vue b/nezha-fronted/src/components/page/dashboard/chartBox.vue
index 13f36beb5..e624dc2f2 100644
--- a/nezha-fronted/src/components/page/dashboard/chartBox.vue
+++ b/nezha-fronted/src/components/page/dashboard/chartBox.vue
@@ -198,7 +198,7 @@
</el-select>
</el-form-item>
- <el-form-item :label="$t('dashboard.panel.chartForm.unit')" class="half-form-item" prop="unit" v-show="editChart.type !='text'">
+ <el-form-item :label="$t('dashboard.panel.chartForm.unit')" class="half-form-item" prop="unit" v-show="editChart.type !='text' && editChart.type !=='url'">
<el-cascader :options="unitOptions" :props="{ expandTrigger: 'hover',emitPath:false }" :show-all-levels="false" @change="unitSelected" filterable id="chart-box-unit"
placeholder=""
popper-class="dc-dropdown"