From e7b914bea3cbd397735113614445412732a92920 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 21 Nov 2022 20:21:03 -0800 Subject: [PATCH] finally fix? --- package.json | 2 +- packages/client/src/pages/page.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 391b064563..f997270ff0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.16.7", + "version": "12.119.0-calc.16.8", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/pages/page.vue b/packages/client/src/pages/page.vue index 9991d62e40..309ee600aa 100644 --- a/packages/client/src/pages/page.vue +++ b/packages/client/src/pages/page.vue @@ -100,8 +100,6 @@ const path = $computed(() => props.username + '/' + props.pageName); let bgImg = $ref('linear-gradient(to bottom right, #31748f, #9ccfd8)'); -if (page.eyeCatchingImage.url != null) { bgImg = `url(${page.eyeCatchingImage.url})`; } - function fetchPage() { page = null; os.api('pages/show', { @@ -163,6 +161,8 @@ const headerActions = $computed(() => []); const headerTabs = $computed(() => []); +if (page.eyeCatchingImage.url != null) { bgImg = `url(${page.eyeCatchingImage.url})`; } + definePageMetadata(computed(() => page ? { title: computed(() => page.title || page.name), avatar: page.user,