From 5e3f151ce7631b881386c795bde3ade6d0549d10 Mon Sep 17 00:00:00 2001 From: chenxing Date: Fri, 9 Oct 2026 12:29:57 +0800 Subject: [PATCH] =?UTF-8?q?revert(=E9=A1=B6=E6=A0=8F):=20=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=20LOGO=20=E6=96=87=E5=AD=97=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=EF=BC=88=E7=94=A8=E6=88=B7=E5=8F=8D=E9=A6=88=E5=AD=90=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E4=B8=8D=E5=B1=95=E7=A4=BA=EF=BC=8C=E4=BB=85=E9=97=A8?= =?UTF-8?q?=E6=88=B7=E5=B1=95=E7=A4=BA=EF=BC=89=EF=BC=88LOGO=E6=96=87?= =?UTF-8?q?=E5=AD=97=E4=B8=8E=E4=B8=BB=E9=A2=98JSON=E5=8C=96=E5=A2=9E?= =?UTF-8?q?=E8=A1=A5=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layout.vue | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/src/components/layout.vue b/src/components/layout.vue index 87562a5..1976df5 100644 --- a/src/components/layout.vue +++ b/src/components/layout.vue @@ -37,30 +37,14 @@ const readLogoUrl = () => { } logoUrl.value = v || defaultLogo; }; -// LOGO 文字(平台/学校名称,2026-10-09 LOGO 文字轮):localStorage["yh-logo-text"](同一异步补齐段写入),空=不展示。 -const logoText = ref(""); -const readLogoText = () => { - let v: string | null = null; - try { - v = localStorage.getItem("yh-logo-text"); - } catch { - v = null; - } - logoText.value = v || ""; -}; const onLogoError = () => { if (logoUrl.value !== defaultLogo) logoUrl.value = defaultLogo; }; onMounted(() => { readLogoUrl(); - readLogoText(); document.addEventListener("yh-appearance-updated", readLogoUrl); - document.addEventListener("yh-appearance-updated", readLogoText); -}); -onBeforeUnmount(() => { - document.removeEventListener("yh-appearance-updated", readLogoUrl); - document.removeEventListener("yh-appearance-updated", readLogoText); }); +onBeforeUnmount(() => document.removeEventListener("yh-appearance-updated", readLogoUrl)); onBeforeMount(() => { routeChange(route); @@ -198,7 +182,6 @@ function linkHomePage() {
云海 - {{ logoText }}

{{ appName }}

@@ -307,14 +290,6 @@ function linkHomePage() { .header-container .logo-badge { margin: 0 10px 0 0; } -/* LOGO 文字(平台/学校名称):贴徽标右侧,顶栏品牌色深底上白字,禁止换行挤压布局 */ -.header-container .logo-text { - font-size: 19px; - font-weight: 700; - color: #fff; - white-space: nowrap; - letter-spacing: 0.4px; -} /* 面包屑「首页」垂直居中:骨架遗留的 .path-nav .icon-category{position:relative;top:1px} 是给老 iconfont 字体字形做的基线补偿,换成 ysch mask 的 1em 方块后反而把图标顶偏; 这里用 inline-flex 真居中并关掉该补偿(不动通道产物,覆盖收在本组件内) */