Skip to content

Commit

Permalink
fix: could not replace localhost:1337 if coverUrl is null
Browse files Browse the repository at this point in the history
  • Loading branch information
ly525 committed Jan 4, 2020
1 parent a8024e1 commit 942ad39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions front-end/h5/src/components/common/work/card-cover.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* @Author: ly525
* @Date: 2019-12-01 18:11:49
* @LastEditors: ly525
* @LastEditTime: 2020-01-01 19:29:14
* @LastEditors : ly525
* @LastEditTime : 2020-01-04 13:51:26
* @FilePath: /luban-h5/front-end/h5/src/components/common/work/card-cover.js
* @Github: https://github.com/ly525/luban-h5
* @Description: Do not edit
Expand Down Expand Up @@ -54,11 +54,11 @@ export default {
},
render (h) {
let covers = [this.getCover(placeholderImg, true/** isPlaceholder */)]
const coverImg = this.coverImageUrl.replace('http://localhost:1337', '')

if (this.qrcodeUrl) {
covers = this.getCoverBg(this.qrcodeUrl, true)
} else if (coverImg) {
} else if (this.coverImageUrl) {
const coverImg = this.coverImageUrl.replace('http://localhost:1337', '')
covers = [this.getCover(coverImg), this.getCoverBg(coverImg)]
}

Expand Down

0 comments on commit 942ad39

Please sign in to comment.