From a1684c2a9b95e06c198d1828576b1de63d8ffc08 Mon Sep 17 00:00:00 2001 From: chenxing Date: Fri, 9 Oct 2026 12:29:40 +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 872e3f6..f528555 100644 --- a/src/components/layout.vue +++ b/src/components/layout.vue @@ -21,30 +21,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)); const isPanel = ref(false); const currPath = ref(""); @@ -203,7 +187,6 @@ function linkHomePage() {
云海 - {{ logoText }}
@@ -322,12 +305,4 @@ function linkHomePage() { position: static; top: 0; } -/* LOGO 文字(平台/学校名称):贴徽标右侧,顶栏品牌色深底上白字,禁止换行挤压布局 */ -.header-container .logo-text { - font-size: 19px; - font-weight: 700; - color: #fff; - white-space: nowrap; - letter-spacing: 0.4px; -} \ No newline at end of file