From 3ac158c6445ceab91e152faa67b72b6b9ea4c424 Mon Sep 17 00:00:00 2001 From: wangjr Date: Fri, 7 Jan 2022 14:46:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0Visible=E5=8F=AF=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/base/head_pro.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/base/head_pro.tmpl b/templates/base/head_pro.tmpl index 8f7f41ddc..10d86f809 100644 --- a/templates/base/head_pro.tmpl +++ b/templates/base/head_pro.tmpl @@ -233,7 +233,7 @@ var _hmt = _hmt || []; }else{ isNewNotice=false; } - if ("{{.notice.Visible}}"){ + if (JSON.parse("{{.notice.Visible}}")){ if(isNewNotice){ document.getElementById("notic_content").style.display='block' }else{