From a02741ff0ead9a285c69341732fb7e3bc21249b8 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 0423cb46..133d2014 100644 --- a/src/forge/Information/Pages/newsDetail.jsx +++ b/src/forge/Information/Pages/newsDetail.jsx @@ -70,9 +70,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 }`) }