From 9dd8c954d0a0788429c91af76d55b7795cbb8d77 Mon Sep 17 00:00:00 2001 From: AetherNo2332 <130164460+AetherNo2332@users.noreply.github.com> Date: Mon, 21 Sep 2026 07:59:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E9=A6=96=E5=B1=8F=20favicon=20-=20?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E5=85=88=E9=97=AA=E5=86=85=E7=BD=AE=E5=93=81?= =?UTF-8?q?=E7=89=8C=E5=9B=BE=E6=A0=87=20(#570)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original-Commit: d049f7014d49e93ab0e6aa8b7e715d5155b94dc0 fix(web): 首屏 favicon - 不再先闪内置品牌图标 index.html 静态声明 /logo.svg 作 icon,而 favicon 由 use-appearance-store 在解析出外观后写入 (link[rel~="icon"] + appearanceLogoURL)。自定义品牌部署于是会先闪一下内置 logo。 换成空占位 :外观系统照旧覆盖它,占位只是为了不让浏览器去 请求 /favicon.ico(那是一条 404)。代价是外观接口不可用时标签页没有图标,这是有意的取舍。 新增源码级守卫用例(上游原态 1 pass/1 fail,改后 2 pass)。 --- web/index.html | 4 +++- web/test/app-icon-neutral-bootstrap.test.ts | 22 +++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 web/test/app-icon-neutral-bootstrap.test.ts diff --git a/web/index.html b/web/index.html index 158afdb88..476c83f11 100644 --- a/web/index.html +++ b/web/index.html @@ -4,7 +4,9 @@ - + +