style: 小图当作favicon.ico
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user