???
This commit is contained in:
parent
bf0e7368ef
commit
917191539d
2 changed files with 10 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "12.119.0-calc.16.10",
|
"version": "12.119.0-calc.16.11",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -107,14 +107,18 @@ function fetchPage() {
|
||||||
username: props.username,
|
username: props.username,
|
||||||
}).then(_page => {
|
}).then(_page => {
|
||||||
page = _page;
|
page = _page;
|
||||||
if (_page.eyeCatchingImage != null) {
|
getBgImg();
|
||||||
bgImg = `url(${_page.eyeCatchingImage.url})`;
|
|
||||||
}
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
error = err;
|
error = err;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getBgImg() {
|
||||||
|
if (page.eyeCatchingImage != null) {
|
||||||
|
bgImg = `url(${page.eyeCatchingImage.url})`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function share() {
|
function share() {
|
||||||
navigator.share({
|
navigator.share({
|
||||||
title: page.title ?? page.name,
|
title: page.title ?? page.name,
|
||||||
|
@ -130,7 +134,7 @@ function shareWithNote() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function like() {
|
function like() {
|
||||||
os.apiWithDialog('pages/like', {
|
os.api('pages/like', {
|
||||||
pageId: page.id,
|
pageId: page.id,
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
page.isLiked = true;
|
page.isLiked = true;
|
||||||
|
@ -158,7 +162,7 @@ function pin(pin) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(() => path, fetchPage, bgImg, { immediate: true });
|
watch(() => path, fetchPage, { immediate: true });
|
||||||
|
|
||||||
const headerActions = $computed(() => []);
|
const headerActions = $computed(() => []);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue