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]']">