fix: 修复更新网站logo不生效的缺陷
This commit is contained in:
parent
200ebb03b4
commit
5608b5fd41
@ -103,10 +103,10 @@ const useUserStore = defineStore({
|
|||||||
return await ThemeApi.getThemeInfo(loading).then((ok) => {
|
return await ThemeApi.getThemeInfo(loading).then((ok) => {
|
||||||
this.setTheme(ok.data)
|
this.setTheme(ok.data)
|
||||||
window.document.title = this.themeInfo['title'] || 'MaxKB'
|
window.document.title = this.themeInfo['title'] || 'MaxKB'
|
||||||
// const link = document.querySelector('link[rel="icon"]') as any
|
const link = document.querySelector('link[rel="icon"]') as any
|
||||||
// if (link) {
|
if (link) {
|
||||||
// link['href'] = this.themeInfo['icon'] || '/favicon.ico'
|
link['href'] = this.themeInfo['icon'] || '/favicon.ico'
|
||||||
// }
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user