From bc8ce0bd4789aa266ef080b1a5dfa02f1822d0ab Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Fri, 23 Jan 2026 15:57:40 +0800 Subject: [PATCH] fix --- src/component/Detail/DesignDetail.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/component/Detail/DesignDetail.vue b/src/component/Detail/DesignDetail.vue index f5f3b223..ebed65a0 100644 --- a/src/component/Detail/DesignDetail.vue +++ b/src/component/Detail/DesignDetail.vue @@ -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){