From d0125cb2b1b9b343746b62438c23cbfb0dcc5edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BF=83=E5=AE=87?= Date: Thu, 27 Jun 2024 16:31:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0keywords?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Information/Pages/newsDetail.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/forge/Information/Pages/newsDetail.jsx b/src/forge/Information/Pages/newsDetail.jsx index 6f6960829..5b33b7501 100644 --- a/src/forge/Information/Pages/newsDetail.jsx +++ b/src/forge/Information/Pages/newsDetail.jsx @@ -71,9 +71,9 @@ function NewsDetail(props){ document.title= zonedetail.name; setSeoMeta(`${zonedetail.name}`, zonedetail.name, zonedetail.subTitle, `/zone/${deptId}`) } else { - const { name, cmsDir, summary, id} = detail; + let { name, cmsDir, summary, id, keywords} = detail; const title = `${ name }/${ cmsDir.name }`; - const keywords = `${ name },${ cmsDir.name },${ zonedetail.name }`; + keywords = keywords || `${ name },${ cmsDir.name },${ zonedetail.name }`; document.title = title; setSeoMeta(keywords, title, summary, `/zone/${deptId}/newdetail/${ id }`) }