From f1f01b8807d96ebbe78f14b331c1d945996cd188 Mon Sep 17 00:00:00 2001
From: du <13220750630.163.com>
Date: 星期五, 28 三月 2025 16:26:39 +0800
Subject: [PATCH] 合成视频

---
 easegen-front/src/views/chooseTemplate/index.vue |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/easegen-front/src/views/chooseTemplate/index.vue b/easegen-front/src/views/chooseTemplate/index.vue
index c8d860e..e7e4af2 100644
--- a/easegen-front/src/views/chooseTemplate/index.vue
+++ b/easegen-front/src/views/chooseTemplate/index.vue
@@ -1341,11 +1341,11 @@
     2: '2'
   }
 })
-// const removeHtmlTags= (html) =>{
-//   const parser = new DOMParser();
-//   const doc = parser.parseFromString(html, 'text/html');
-//   return doc.body.textContent || "";
-// }
+const removeHtmlTags= (html) =>{
+  const parser = new DOMParser();
+  const doc = parser.parseFromString(html, 'text/html');
+  return doc.body.textContent || "";
+}
 
 const saveSubmit = async (type) => {
   // 妫�鏌ュ満鏅槸鍚︿负绌�
@@ -1423,9 +1423,8 @@
         const innerPictureCom = item.innerPicture
         console.log('innerPictureCom:', JSON.stringify(innerPictureCom))
         console.log(item.pptRemark)
-        // item.pptRemark = removeHtmlTags(item.pptRemark)
-        item.pptRemark = editorRef.value.getText()
-        console.log( item.pptRemark)
+        item.pptRemark = removeHtmlTags(item.pptRemark)
+        // item.pptRemark = editorRef.value.getText()
         // item.pptRemark=item.pptRemark.replace(/<[^>]+>/g, '')
         const formatItem = {
           background: {

--
Gitblit v1.9.3