From bb7618905e38a7397e3345a19355efff2623b720 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Mon, 30 Oct 2023 14:16:14 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=B0=8F=E5=9B=BE=E5=BD=93=E4=BD=9Cfa?= =?UTF-8?q?vicon.ico?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/app.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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';