Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix(question): 回答详情页面报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Sep 26, 2018
1 parent 3a8baf2 commit fc01ecf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/page/question/AnswerDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,16 @@ export default {
},
isMine() {
return this.user.id === this.CURRENTUSER.id;
},
getAvatar(avatar) {
avatar = avatar || {};
return avatar.url || null;
}
},
created() {
this.fetchAnswer();
},
methods: {
getAvatar(avatar) {
avatar = avatar || {};
return avatar.url || null;
},
formatBody(body) {
return markdownIt({
html: true
Expand Down

0 comments on commit fc01ecf

Please sign in to comment.