diff --git a/src/components/datav/chart-bar.vue b/src/components/datav/chart-bar.vue index 98fce4c..4af2fa0 100644 --- a/src/components/datav/chart-bar.vue +++ b/src/components/datav/chart-bar.vue @@ -105,6 +105,7 @@ function getColor(val) { if (props.color instanceof String) { return props.color; } + console.log(val) if (props.color instanceof Array) { const colors = [...props.color]; // percentage降序 @@ -116,7 +117,6 @@ function getColor(val) { } } return "linear-gradient(270deg, #63e700 0%, #19674c 100%)"; - }