From f939dff1648d345b56c1da6dde9c94de04753f1c Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Mon, 31 Oct 2022 17:07:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E7=B3=BB=E7=BB=9FLOGO=E5=90=8E=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1019047 --user=李玉号 【系统设置】github #18879,更换系统 LOGO后,非更换logo人访问还是原favicon/无痕窗口访问还是原favicon【首次更换必现】 https://www.tapd.cn/55049933/s/1283842 Closes #18879 --- .../frontend/src/business/app-layout/index.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/framework/sdk-parent/frontend/src/business/app-layout/index.vue b/framework/sdk-parent/frontend/src/business/app-layout/index.vue index 007f4f2a35..32c54b903b 100644 --- a/framework/sdk-parent/frontend/src/business/app-layout/index.vue +++ b/framework/sdk-parent/frontend/src/business/app-layout/index.vue @@ -122,9 +122,19 @@ export default { if (title) { document.title = title; } + if (response.data[0].paramValue) { + this.shortcutIcon(); + } this.setAsideTheme(theme); }); }, + shortcutIcon() { + let link = document.querySelector("link[rel*='icon']") || document.createElement('link'); + link.type = 'image/x-icon'; + link.rel = 'shortcut icon'; + link.href = '/display/file/logo'; + document.getElementsByTagName('head')[0].appendChild(link); + }, setAsideTheme(theme) { switch (this.sideTheme) { case "theme-light":