Skip to content

Commit

Permalink
fix: 修复授权码模式下取消分享页面显示异常问题
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Jul 1, 2023
1 parent 0779aa7 commit 611c95b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"serve": "bash scripts/serve.sh",
"dev": "bash scripts/dev.sh",
"devPrivate": "bash scripts/dev_private.sh",
"pluginDev": "zhi-build --watch",
"build": "bash scripts/build.sh",
"nodeBuild": "bash scripts/node.sh",
Expand Down
6 changes: 3 additions & 3 deletions pages/static/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ const formData = reactive({
await getPostData()
if (!props.overrideSeo) {
const titleSign = " - " + t("blog.share")
const title = `${formData.post.title}${props.showTitleSign ? titleSign : ""}`
const desc = getSummery(formData.post.description)
const headImage = getFirstImageSrc(formData.post.description)
const title = `${formData?.post?.title ?? "404 Not Found"}${props.showTitleSign ? titleSign : ""}`
const desc = getSummery(formData?.post?.description ?? "")
const headImage = getFirstImageSrc(formData?.post?.description ?? "")
const seoMeta = {
title: title,
ogTitle: title,
Expand Down

0 comments on commit 611c95b

Please sign in to comment.