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 真居中并关掉该补偿(不动通道产物,覆盖收在本组件内) */