From 239363031843ac38f138d46b24a896ac09b5030a Mon Sep 17 00:00:00 2001 From: pipipi-pikachu <1171051090@qq.com> Date: Sat, 30 Jan 2021 10:58:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BA=94=E7=94=A8=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E4=B8=BB=E9=A2=98=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Editor/Toolbar/SlideStylePanel.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/Editor/Toolbar/SlideStylePanel.vue b/src/views/Editor/Toolbar/SlideStylePanel.vue index ce199509..91fad1e7 100644 --- a/src/views/Editor/Toolbar/SlideStylePanel.vue +++ b/src/views/Editor/Toolbar/SlideStylePanel.vue @@ -279,10 +279,12 @@ export default defineComponent({ const { themeColor, backgroundColor, fontColor } = theme.value for(const slide of newSlides) { - slide.background = { - ...slide.background, - type: 'solid', - color: backgroundColor + if(!slide.background || slide.background.type !== 'image') { + slide.background = { + ...slide.background, + type: 'solid', + color: backgroundColor + } } const elements = slide.elements