Update tag.html

This commit is contained in:
Meekdai 2023-11-21 21:24:13 +08:00
parent 3c6d1d3932
commit 6280f10b12

View File

@ -86,7 +86,7 @@ function showList(jsonData){
let tagLable=document.getElementById("tagLable");
for(i in jsonData["postListJson"]){
if(!(jsonData["postListJson"][i]['label'] in tagList)){
if(!(tagList.includes(jsonData["postListJson"][i]['label']))){
tagList.push(jsonData["postListJson"][i]['label']);
let showLabels=document.createElement("a");
showLabels.setAttribute("class","Label");