优化应用全局主题逻辑
This commit is contained in:
parent
df23eb6870
commit
2393630318
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue