From dadfabe036e0dcda19745195b9190915b0bc7147 Mon Sep 17 00:00:00 2001 From: chenxing Date: Thu, 8 Oct 2026 18:53:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=96=E8=A7=82=E5=81=8F=E5=A5=BD=E5=BC=82?= =?UTF-8?q?=E6=AD=A5=E8=A1=A5=E9=BD=90C=EF=BC=9A=E6=8E=A5=20A=20=E7=B1=BB?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E9=80=9A=E9=81=93=20loader=20+=20=E9=A1=B6?= =?UTF-8?q?=E6=A0=8F=E4=BA=91=E6=B5=B7=20logo=20=E5=BE=BD=E6=A0=87=20+=20?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E9=94=AE=20yh-logo-url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - index.html env-config 引导后插入 A 类免插件 loader(svc-hall cf11ef8 样板:staticHost > baseHost > %VITE_THEME_HOST% 仅 dev > 同源 /static,document.write parser-blocking,纯叠加) - vite.config 补 /static dev 代理(YH_THEME_PROXY_TARGET 可覆盖,默认线上通道) - header-container 首位插入 .logo-badge(结构与 Notice 对齐,皮肤由通道 base.layout.css 提供);拷贝平台 yunhai-logo.svg 资产兜底 - localStorage["yh-logo-url"] 优先,@error 回落兜底;mounted 读一次 + 监听 yh-appearance-updated 即时切换 --- index.html | 12 ++++++++++++ src/assets/image/yunhai-logo.svg | 7 +++++++ src/components/layout.vue | 26 +++++++++++++++++++++++++- vite.config.ts | 6 ++++++ 4 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 src/assets/image/yunhai-logo.svg diff --git a/index.html b/index.html index 5d7555f..3a356c8 100644 --- a/index.html +++ b/index.html @@ -29,6 +29,18 @@ } })(); + + <%- title %> diff --git a/src/assets/image/yunhai-logo.svg b/src/assets/image/yunhai-logo.svg new file mode 100644 index 0000000..7d1d358 --- /dev/null +++ b/src/assets/image/yunhai-logo.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/components/layout.vue b/src/components/layout.vue index 8d38d4c..cb8be74 100644 --- a/src/components/layout.vue +++ b/src/components/layout.vue @@ -1,13 +1,35 @@