From 5608b5fd41d2a63ec86e88458d9aa73b223357ba Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 30 Jul 2024 16:24:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=BD=91=E7=AB=99logo=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84?= =?UTF-8?q?=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/stores/modules/user.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/src/stores/modules/user.ts b/ui/src/stores/modules/user.ts index c884f506a..db5150198 100644 --- a/ui/src/stores/modules/user.ts +++ b/ui/src/stores/modules/user.ts @@ -103,10 +103,10 @@ const useUserStore = defineStore({ return await ThemeApi.getThemeInfo(loading).then((ok) => { this.setTheme(ok.data) window.document.title = this.themeInfo['title'] || 'MaxKB' - // const link = document.querySelector('link[rel="icon"]') as any - // if (link) { - // link['href'] = this.themeInfo['icon'] || '/favicon.ico' - // } + const link = document.querySelector('link[rel="icon"]') as any + if (link) { + link['href'] = this.themeInfo['icon'] || '/favicon.ico' + } }) },