fix(图表): 指标卡>高级>阈值设置,禁用后指标卡的数值颜色依然显示阈值设置中的颜色

This commit is contained in:
ulleo 2024-01-29 14:48:11 +08:00
parent e7171df04d
commit b7ed5b39e2

View File

@ -90,7 +90,11 @@ const thresholdColor = computed(() => {
return color
}
const value = result.value
if (view.value.senior && view.value.senior.threshold?.labelThreshold?.length > 0) {
if (
view.value.senior &&
view.value.senior.threshold?.enable &&
view.value.senior.threshold?.labelThreshold?.length > 0
) {
const senior = view.value.senior
for (let i = 0; i < senior.threshold.labelThreshold.length; i++) {
let flag = false