du
2025-06-12 41c6c9ece6f490fe103d13c5caae5bedd649cc17
easegen-front/src/views/chooseTemplate/index.vue
@@ -498,7 +498,6 @@
      </div>
      <!-- 模板设置 -->
      <div class="template-box template-right" v-if="showTemplateTool">
        <div class="tabs-2"> </div>
        <div class="template-list">
          <div class="tabs-1">
            <div
@@ -2055,9 +2054,19 @@
  pptList.forEach((item) => {
    const originalPPT = item.innerPicture?.src || item.pictureUrl
    if (template.showBackground) {
    console.log(template)
      item.pictureUrl = template.bgImage
      item.digitalHuman.show = template.showDigitalHuman
      item.digitalHuman.w = template.humanW
      item.digitalHuman.h = template.humanH
      item.digitalHuman.x = template.humanX
      item.digitalHuman.y = template.humanY
      PPTArr.value.forEach((otherItem) => {
        if (otherItem.templateId === item.templateId) {
          otherItem.width = item.width
          otherItem.height = item.height
        }
      })
      if (template.showPpt) {
        item.innerPicture = {
          name: '画中画',
@@ -2077,23 +2086,6 @@
          templateId: template.id
        }
      }
    } else {
      item.pictureUrl = originalPPT
      item.innerPicture.src = ''
    }
    item.digitalHuman.show = template.showDigitalHuman
    item.digitalHuman.w = template.humanW
    item.digitalHuman.h = template.humanH
    item.digitalHuman.x = template.humanX
    item.digitalHuman.y = template.humanY
    PPTArr.value.forEach((otherItem) => {
      if (otherItem.templateId === item.templateId) {
        otherItem.width = item.width
        otherItem.height = item.height
      }
    })
  })
}