Skip to content

Commit

Permalink
fix: remove localhost:1337 temporarily in cover url
Browse files Browse the repository at this point in the history
  • Loading branch information
ly525 committed Jan 1, 2020
1 parent 18bbe16 commit 5933eed
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion front-end/h5/src/components/common/work/card-cover.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* @Author: ly525
* @Date: 2019-12-01 18:11:49
* @LastEditors: ly525
* @LastEditTime: 2020-01-01 19:29:14
* @FilePath: /luban-h5/front-end/h5/src/components/common/work/card-cover.js
* @Github: https://github.com/ly525/luban-h5
* @Description: Do not edit
* @Copyright 2018 - 2019 luban-h5. All Rights Reserved
*/
import placeholderImg from '@/assets/lbp-picture-placeholder.png'

function getDefaultStyle (img, isPlaceholder) {
Expand Down Expand Up @@ -44,7 +54,7 @@ export default {
},
render (h) {
let covers = [this.getCover(placeholderImg, true/** isPlaceholder */)]
const coverImg = this.coverImageUrl
const coverImg = this.coverImageUrl.replace('http://localhost:1337', '')

if (this.qrcodeUrl) {
covers = this.getCoverBg(this.qrcodeUrl, true)
Expand Down

0 comments on commit 5933eed

Please sign in to comment.