From c9a63d686bbc429d75c2d8e7e32b63b5e31baf2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Thu, 5 Oct 2023 15:18:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=A0=87=E9=A2=98=E4=B8=BA?= =?UTF-8?q?=E8=87=AA=E5=B7=B1=E7=9A=84=E6=98=B5=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/index.html b/public/index.html index eab13ea..99f929e 100644 --- a/public/index.html +++ b/public/index.html @@ -249,12 +249,17 @@ } document.body.appendChild(nameInput) + // 设置标签为自己的头像 if (localStorage.getItem('avatar')) { const favicon = document.createElement('link') favicon.rel = 'icon' favicon.href = localStorage.getItem('avatar') document.head.appendChild(favicon) } + // 设置标题为自己的昵称 + if (localStorage.getItem('username')) { + document.title = localStorage.getItem('username') + }