From b8f9b1bd4034853d424c580f9fed081249d29b36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E6=9E=AB?= <645381995@qq.com> Date: Wed, 27 Mar 2024 19:04:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=89=93=E5=8D=B0=20catch=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/typography/Base/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/typography/Base/index.tsx b/components/typography/Base/index.tsx index 949d785343d4..be0edda7d9ce 100644 --- a/components/typography/Base/index.tsx +++ b/components/typography/Base/index.tsx @@ -204,7 +204,7 @@ const Base = React.forwardRef((props, ref) => { typeof copyConfig.text === 'function' ? await copyConfig.text() : copyConfig.text; copy(text || String(children) || '', copyOptions); } catch (error) { - /* empty */ + console.error(error); } setCopyLoading(false); setCopied(true);