forked from github/dataease
fix(图表): 指标卡>高级>阈值设置,禁用后指标卡的数值颜色依然显示阈值设置中的颜色
This commit is contained in:
parent
e7171df04d
commit
b7ed5b39e2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user