forked from github/dataease
fix(图表): 修复自定义图例颜色无法保存的问题 #11820
This commit is contained in:
parent
6938e2d0c2
commit
2a56663bd8
@ -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')
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user