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' + } }) },