fix: 修改标题控制

This commit is contained in:
wangdan-fit2cloud 2024-08-22 15:01:35 +08:00
parent 6fa6ed92c3
commit 6bbf6a0577

View File

@ -102,7 +102,7 @@ const useUserStore = defineStore({
async theme(loading?: Ref<boolean>) { async theme(loading?: Ref<boolean>) {
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'