BUG 30961

This commit is contained in:
aixianling
2022-08-23 14:15:04 +08:00
parent ec729eb1e9
commit 6ac1f0a87a

View File

@@ -12,7 +12,7 @@
<div class="col-row">
<div class="item" v-for="(v,label) in overviews" :key="label">
<p v-text="label"/>
<h2 v-text="v"/>
<h2 v-text="formatValue(v)"/>
</div>
</div>
<div class="chart-flex">
@@ -178,7 +178,7 @@ export default {
data() {
return {
search: {},
overviews: [],
overviews: {},
productTop10: [],
tradeTrend: [],
applyInfo: {}
@@ -227,6 +227,9 @@ export default {
}
})
},
formatValue(v) {
return v?.toFixed(1) || v
}
},
created() {
this.getStaData()