From ed4822ead6a40b30be5c630e49b4fdda66fa70e5 Mon Sep 17 00:00:00 2001 From: vapao Date: Mon, 6 Dec 2021 10:07:35 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E4=BC=98=E5=8C=96=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/layout/Notification.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spug_web/src/layout/Notification.js b/spug_web/src/layout/Notification.js index a80e99f..287d274 100644 --- a/spug_web/src/layout/Notification.js +++ b/spug_web/src/layout/Notification.js @@ -65,10 +65,9 @@ export default function () { fetch(); const {title, content} = JSON.parse(e.data); const key = `open${Date.now()}`; - const btn = ( - - ); - notification.warning({message: title, description: content, btn, key, top: 64, duration: null}) + const description =
{content}
; + const btn = ; + notification.warning({message: title, description, btn, key, top: 64, duration: null}) } } }