From f65ce5c7652c762ba5de5d2e27577d44b46d45b4 Mon Sep 17 00:00:00 2001 From: chiyi Date: Tue, 27 Oct 2026 16:28:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(layout):=20=E5=8E=BB=E6=8E=89=E5=90=84?= =?UTF-8?q?=E9=A1=B5=E9=A1=B6=E9=83=A8=E5=B8=83=E5=B1=80=E7=BA=A7=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E6=A0=87=E9=A2=98=EF=BC=88=E5=9B=BE=E7=89=87/?= =?UTF-8?q?=E7=94=9F=E5=9B=BE/=E6=96=87=E6=A1=A3/=E5=85=B3=E4=BA=8E?= =?UTF-8?q?=E7=AD=89=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- frontend/src/layouts/PublicLayout.vue | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/frontend/src/layouts/PublicLayout.vue b/frontend/src/layouts/PublicLayout.vue index b081cd6..13bcb79 100644 --- a/frontend/src/layouts/PublicLayout.vue +++ b/frontend/src/layouts/PublicLayout.vue @@ -6,7 +6,6 @@ import { site } from '../site' import Icon from '../components/Icon.vue' import Logo from '../components/Logo.vue' import { pointsLabel } from '../credits' -import { draft } from '../playground' import { announcement, openAnnouncement } from '../announcement' const route = useRoute() @@ -55,15 +54,8 @@ const displayName = computed(() => { return e ? e.split('@')[0] : '我的' }) -// On the 画图 workbench the label tracks the active mode — it flips with the -// 生图/生视频 tab, and on state restore reflects a pending job's kind. -const currentLabel = computed(() => { - if (route.path === '/user') return draft.mode === 'video' ? '生视频' : '生图' - return route.meta?.label || '' -}) - // The home page paints its own full-bleed hero; other pages keep the padded -// shell plus a route-label header. +// shell. const isHome = computed(() => route.path === '/') // CanvasView's root is a — keep it outside the @@ -173,13 +165,8 @@ async function onLogout() {
- -
- {{ currentLabel }} -
-
+ isHome ? 'pt-0 px-0' : 'px-4 md:px-8 pt-[96px]']">