微调
This commit is contained in:
@@ -96,6 +96,14 @@
|
||||
if (res.code == 0) {
|
||||
console.log(res, 'res')
|
||||
this.bookInfo = res.book
|
||||
|
||||
if(!this.bookInfo.author || this.bookInfo.author == null){
|
||||
this.bookInfo.author = {
|
||||
'authorName' : '未知'
|
||||
}
|
||||
console.log(this.bookInfo.author.authorName,'this.bookInfo.author.authorName')
|
||||
}
|
||||
//console.log(this.bookInfo.author.authorName,'this.bookInfo.author.authorName')
|
||||
this.voicesImg = res.book.images
|
||||
// this.bookInfo.name = res.book.name
|
||||
this.isBuy = res.book.isBuy
|
||||
|
||||
Reference in New Issue
Block a user