From d970382ebbc40764ecee9f567c3cbc5a53ef8249 Mon Sep 17 00:00:00 2001 From: Meekdai Date: Tue, 21 Nov 2023 22:12:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E5=90=AChash=E5=8F=98=E5=8C=96?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/tag.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/tag.html b/templates/tag.html index 21024a0..9fec88c 100644 --- a/templates/tag.html +++ b/templates/tag.html @@ -92,7 +92,7 @@ function showList(jsonData){ showLabels.setAttribute("class","Label"); showLabels.setAttribute("style","background-color:"+jsonData["postListJson"][i]['labelColor']); showLabels.innerHTML=jsonData["postListJson"][i]['label']; - showLabels.setAttribute("href",'/tag.html#'+jsonData["postListJson"][i]['label']); + showLabels.setAttribute("href",'#'+jsonData["postListJson"][i]['label']); tagLable.appendChild(showLabels); } @@ -137,5 +137,8 @@ function showList(jsonData){ } } } + +window.onhashchange=function(event){location.reload();} + {% endblock %}