fix(图表): 修复自定义图例颜色无法保存的问题 #11820

This commit is contained in:
wisonic 2024-09-11 19:11:32 +08:00
parent 6938e2d0c2
commit 2a56663bd8

View File

@ -142,6 +142,8 @@ const setupSeriesColor = () => {
const target = document.getElementById(targetId)
if (target) {
seriesColorState.seriesColorPickerId = `#${targetId}`
} else {
seriesColorPickerRef.value?.hide()
}
})
}
@ -175,7 +177,7 @@ const changeSeriesColor = () => {
}
})
if (changed) {
state.value.basicStyleForm[seriesColorName.value] = seriesColorState.seriesColor
state.value.basicStyleForm[seriesColorName.value] = cloneDeep(seriesColorState.seriesColor)
changeBasicStyle('seriesColor')
}
}