From c3945ddb1ea15611fcaf7e77c27d64e3b966949a Mon Sep 17 00:00:00 2001 From: chen19ge Date: Fri, 1 Apr 2022 07:31:31 +0000 Subject: [PATCH] =?UTF-8?q?update=20web=5Fsrc/src/components/item/show/sho?= =?UTF-8?q?w=5Ftable=5Fitem/Index.vue.=20=E8=A7=A3=E6=9E=90=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E5=86=85|=E6=97=B6=E4=BC=9A=E5=A4=9A=E5=87=BA?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=8D=95=E5=85=83=E6=A0=BC=E3=80=82=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E5=86=99=E8=BD=AC=E8=AF=91|=E3=80=82=E4=B9=9F?= =?UTF-8?q?=E4=BC=9A=E3=80=82=E6=98=AF=E9=A1=B5=E9=9D=A2=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82=E8=BF=99=E9=87=8C=E5=B0=86?= =?UTF-8?q?=E5=85=B6=E5=8C=B9=E9=85=8D=E5=8A=A0=E4=B8=8A=E5=88=99=E5=8F=AF?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=AD=A4bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/src/components/item/show/show_table_item/Index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web_src/src/components/item/show/show_table_item/Index.vue b/web_src/src/components/item/show/show_table_item/Index.vue index e0073dc2..47ea09dd 100644 --- a/web_src/src/components/item/show/show_table_item/Index.vue +++ b/web_src/src/components/item/show/show_table_item/Index.vue @@ -157,14 +157,15 @@ export default { // 先定义一个html反转义的函数 const unescapeHTML = str => str.replace( - /&|<|>|'|"/g, + /&|<|>|'|"||/g, tag => ({ '&': '&', '<': '<', '>': '>', ''': "'", - '"': '"' + '"': '"', + '|': '|' }[tag] || tag) ) objData = JSON.parse(unescapeHTML(response.data.page_content)) -- Gitee