From 54f68695dcecee971ad65b2fe76447a0a95e07ce Mon Sep 17 00:00:00 2001 From: zhenyiwang Date: Mon, 14 Oct 2024 10:37:10 +0800 Subject: [PATCH 1/2] feat: remove style tag when fetching url --- packages/service/common/string/cheerio.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/service/common/string/cheerio.ts b/packages/service/common/string/cheerio.ts index 99b26a4615b..32726eb04cd 100644 --- a/packages/service/common/string/cheerio.ts +++ b/packages/service/common/string/cheerio.ts @@ -20,7 +20,7 @@ export const cheerioToHtml = ({ const selectDom = $(usedSelector); // remove i element - selectDom.find('i,script').remove(); + selectDom.find('i,script,style').remove(); // remove empty a element selectDom From 01120df71e9325c526f46999afeb28021fee056d Mon Sep 17 00:00:00 2001 From: zhenyiwang Date: Thu, 17 Oct 2024 14:23:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=9C=A8=E2=80=9C=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E2=80=9D=E9=80=9A=E7=9F=A5=E4=B8=AD=EF=BC=8C?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=85=B3=E9=97=AD=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WorkflowComponents/Flow/components/SaveAndPublish.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/components/SaveAndPublish.tsx b/projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/components/SaveAndPublish.tsx index 2075ac15629..a73d417c792 100644 --- a/projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/components/SaveAndPublish.tsx +++ b/projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/components/SaveAndPublish.tsx @@ -68,7 +68,8 @@ const SaveAndPublishModal = ({ toast({ status: 'success', title: t('app:publish_success'), - position: 'top-right' + position: 'top-right', + isClosable: true }); onClose(); })}