This commit is contained in:
X1627315083
2026-01-23 15:57:40 +08:00
parent 4afe1b637e
commit bc8ce0bd47

View File

@@ -361,8 +361,8 @@ export default defineComponent({
let color = ''
let gradient = null
if((detailData.currentDetailType == 'color' || detailData.isEditPattern.value == 'canvasEditor') && isCurrent){
color = `${newData?.color.rgba.r} ${newData?.color.rgba.g} ${newData?.color.rgba.b}`
if(newData?.color.gradient){
color = newData?.color?.rgba?.r?`${newData?.color.rgba.r} ${newData?.color.rgba.g} ${newData?.color.rgba.b}`:''
if(newData?.color?.gradient){
gradient = newData?.color.gradient
}
}else if(isCurrent){