finally fix?

This commit is contained in:
ThatOneCalculator 2022-11-21 20:21:03 -08:00
parent 4a56753869
commit e7b914bea3
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "calckey", "name": "calckey",
"version": "12.119.0-calc.16.7", "version": "12.119.0-calc.16.8",
"codename": "aqua", "codename": "aqua",
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -100,8 +100,6 @@ const path = $computed(() => props.username + '/' + props.pageName);
let bgImg = $ref('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() { function fetchPage() {
page = null; page = null;
os.api('pages/show', { os.api('pages/show', {
@ -163,6 +161,8 @@ const headerActions = $computed(() => []);
const headerTabs = $computed(() => []); const headerTabs = $computed(() => []);
if (page.eyeCatchingImage.url != null) { bgImg = `url(${page.eyeCatchingImage.url})`; }
definePageMetadata(computed(() => page ? { definePageMetadata(computed(() => page ? {
title: computed(() => page.title || page.name), title: computed(() => page.title || page.name),
avatar: page.user, avatar: page.user,