From 8e4d3533aa7687388f21bdf8a647fba4e4f850ae Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 21 Nov 2022 20:14:04 -0800 Subject: [PATCH] fix again --- package.json | 2 +- packages/client/src/pages/page.vue | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6fd9fa5673..391b064563 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.16.6", + "version": "12.119.0-calc.16.7", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/pages/page.vue b/packages/client/src/pages/page.vue index c08ac5d8f9..9991d62e40 100644 --- a/packages/client/src/pages/page.vue +++ b/packages/client/src/pages/page.vue @@ -98,7 +98,9 @@ const otherPostsPagination = { }; const path = $computed(() => props.username + '/' + props.pageName); -const bgImg = page.eyeCatchingImage.url !== null ? page.eyeCatchingImage.url : 'linear-gradient(to bottom right, #31748f, #9ccfd8)'; +let bgImg = $ref('linear-gradient(to bottom right, #31748f, #9ccfd8)'); + +if (page.eyeCatchingImage.url != null) { bgImg = `url(${page.eyeCatchingImage.url})`; } function fetchPage() { page = null;