From 5933eed063fea7e51edd818958dcabadb9b9f159 Mon Sep 17 00:00:00 2001 From: ly525 Date: Wed, 1 Jan 2020 19:39:39 +0800 Subject: [PATCH] fix: remove localhost:1337 temporarily in cover url --- .../h5/src/components/common/work/card-cover.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/front-end/h5/src/components/common/work/card-cover.js b/front-end/h5/src/components/common/work/card-cover.js index 28377be7..7e5212a7 100644 --- a/front-end/h5/src/components/common/work/card-cover.js +++ b/front-end/h5/src/components/common/work/card-cover.js @@ -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) { @@ -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)