From de4bf14f97373ec8d084c5b50b15bc5009ddb7ba Mon Sep 17 00:00:00 2001 From: liuxuewen <947752894@qq.com> Date: Thu, 21 Dec 2023 11:40:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=88=B1=E5=8F=91?= =?UTF-8?q?=E7=94=B5=E6=97=A0=E8=B5=9E=E8=B5=8F=E6=83=85=E5=86=B5=E4=B8=8B?= =?UTF-8?q?=E7=9A=84=E9=BB=98=E8=AE=A4=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/assets/js/halo.js | 43 +++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/templates/assets/js/halo.js b/templates/assets/js/halo.js index e361ae6b..54284d05 100644 --- a/templates/assets/js/halo.js +++ b/templates/assets/js/halo.js @@ -378,29 +378,40 @@ let halo = { function renderer(values){ var data = getArrayItems(values, 1); let powerStar = document.getElementById("power-star") - if (powerStar) { - powerStar.href = "https://afdian.net/u/" + data[0].user_id + if (values.length===0){ + powerStar.href = "/" powerStar.innerHTML = ` +