From 5327fd45220bd99328aa75512eb5f4d5df2e99b1 Mon Sep 17 00:00:00 2001
From: wangjiahao <1522128093@qq.com>
Date: Tue, 2 Apr 2024 12:30:10 +0800
Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?=
 =?UTF-8?q?=E5=AF=8C=E6=96=87=E6=9C=AC=E5=86=85=E9=83=A8=E8=B6=85=E9=93=BE?=
 =?UTF-8?q?=E6=8E=A5=E6=97=A0=E6=B3=95=E6=89=93=E5=BC=80=E5=BD=93=E5=89=8D?=
 =?UTF-8?q?DE=E7=B3=BB=E7=BB=9F=E7=9A=84=E5=85=AC=E5=85=B1=E9=93=BE?=
 =?UTF-8?q?=E6=8E=A5=E9=97=AE=E9=A2=98=20#8696?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../src/custom-component/rich-text/DeRichTextView.vue         | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue
index 8161920e08..8f8e91448c 100644
--- a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue
+++ b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue
@@ -153,7 +153,6 @@ watch(
       canEdit.value = false
       reShow()
       myValue.value = assignment(element.value.propValue.textValue)
-      ed.setContent(myValue.value)
     }
   }
 )
@@ -212,6 +211,9 @@ const assignment = content => {
     })
   }
   content = content.replace('class="base-selected"', '')
+  //De 本地跳转失效问题
+  content = content.replace(/href="#\//g, 'href="/#/')
+  content = content.replace(/href=\\"#\//g, 'href=\\"/#/')
   resetSelect()
   return content
 }