style: 小图当作favicon.ico

This commit is contained in:
TsMask
2023-10-30 14:16:14 +08:00
parent e26e73b6fe
commit bb7618905e

View File

@@ -125,16 +125,11 @@ 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);
}
}
}
this.registerUser = res.data.registerUser === 'true';
if (res.data.loginBackground) {