Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.

Commit

Permalink
fix: 文章详情显示文章标题
Browse files Browse the repository at this point in the history
  • Loading branch information
klren0312 committed Jan 18, 2020
1 parent c7789d5 commit 3c6199c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Weapp/pages/article/article.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
if (value) {
const result = JSON.parse(value)
this.title = result.title
uni.setNavigationBarTitle({
title: this.title
})
// #ifndef H5
this.content = marked(result.content)
// #endif
Expand Down

0 comments on commit 3c6199c

Please sign in to comment.