fix: 修复detection左侧filter的status因编码类型变化导致不能显示文字的问题

This commit is contained in:
刘洪洪
2024-06-05 18:11:51 +08:00
parent 521dcecfd7
commit db54deadbf

View File

@@ -288,9 +288,9 @@ export default {
}
this.filterData[this.pageType][0].data = data.map(r => {
let label = ''
if (r.status === '0') {
if (r.status === '0' || r.status === 0) {
label = this.$t('detections.active')
} else if (r.status === '1') {
} else if (r.status === '1' || r.status === 1) {
label = this.$t('detections.ended')
}
return { label, value: r.status, count: r.count }