站点图标与logo分开添加与展示

This commit is contained in:
chc
2022-12-22 15:17:13 +08:00
parent 2e4246e63b
commit d9e1a4a491
7 changed files with 119 additions and 96 deletions

View File

@@ -124,7 +124,7 @@ export default {
document.querySelector("link[rel*='icon']") ||
document.createElement("link");
link.type = "image/x-icon";
link.href = localStorage.getItem("sellerlogoImg");
link.href = localStorage.getItem("sellerIconImg");
link.rel = "shortcut icon";
document.getElementsByTagName("head")[0].appendChild(link);