fix: 修改标题控制
parent
6fa6ed92c3
commit
6bbf6a0577
|
|
@ -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'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue