style: 小图当作favicon.ico
This commit is contained in:
@@ -125,15 +125,10 @@ const useAppStore = defineStore('app', {
|
|||||||
this.filePathBrand = res.data.filePathBrand;
|
this.filePathBrand = res.data.filePathBrand;
|
||||||
if (res.data.logoType) {
|
if (res.data.logoType) {
|
||||||
this.logoType = res.data.logoType;
|
this.logoType = res.data.logoType;
|
||||||
// 修改html内容
|
// 修改html内容-小图当作favicon.ico
|
||||||
const iconDom = document.querySelector("link[rel~='icon']");
|
const iconDom = document.querySelector("link[rel~='icon']");
|
||||||
if (iconDom) {
|
if (iconDom) {
|
||||||
if (this.logoType === 'icon') {
|
iconDom.setAttribute('href', this.getLOGOIcon);
|
||||||
iconDom.setAttribute('href', this.getLOGOIcon);
|
|
||||||
}
|
|
||||||
if (this.logoType === 'brand') {
|
|
||||||
iconDom.setAttribute('href', this.getLOGOBrand);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.registerUser = res.data.registerUser === 'true';
|
this.registerUser = res.data.registerUser === 'true';
|
||||||
|
|||||||
Reference in New Issue
Block a user