fix(数据大屏): 修复配色重置未生效问题 (#17328)

This commit is contained in:
王嘉豪
2025-10-31 11:23:43 +08:00
committed by GitHub
parent 5183e66742
commit 4769d91468

View File

@@ -234,10 +234,8 @@ const changeColorOption = (option?) => {
}
}
const resetCustomColor = () => {
const { type } = props.chart
const { basicStyleForm } = state.value
if (type.includes('map')) {
if (props.chart?.type?.includes('map')) {
changeColorOption()
} else {
basicStyleForm[seriesColorName.value] = []