diff --git a/src/store/modules/app.ts b/src/store/modules/app.ts index aa4b3148..5cf41fa6 100644 --- a/src/store/modules/app.ts +++ b/src/store/modules/app.ts @@ -125,15 +125,10 @@ const useAppStore = defineStore('app', { this.filePathBrand = res.data.filePathBrand; if (res.data.logoType) { this.logoType = res.data.logoType; - // 修改html内容 + // 修改html内容-小图当作favicon.ico const iconDom = document.querySelector("link[rel~='icon']"); if (iconDom) { - if (this.logoType === 'icon') { - iconDom.setAttribute('href', this.getLOGOIcon); - } - if (this.logoType === 'brand') { - iconDom.setAttribute('href', this.getLOGOBrand); - } + iconDom.setAttribute('href', this.getLOGOIcon); } } this.registerUser = res.data.registerUser === 'true';