mirror of
https://github.com/dataease/dataease.git
synced 2026-05-20 02:58:10 +08:00
fix(图表): 修复自定义图例颜色无法保存的问题 #11820
This commit is contained in:
@@ -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')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user