Commit 5933eed063fea7e51edd818958dcabadb9b9f159
1 parent
18bbe166
fix: remove localhost:1337 temporarily in cover url
Showing
1 changed file
with
11 additions
and
1 deletions
front-end/h5/src/components/common/work/card-cover.js
| 1 | +/* | |
| 2 | + * @Author: ly525 | |
| 3 | + * @Date: 2019-12-01 18:11:49 | |
| 4 | + * @LastEditors: ly525 | |
| 5 | + * @LastEditTime: 2020-01-01 19:29:14 | |
| 6 | + * @FilePath: /luban-h5/front-end/h5/src/components/common/work/card-cover.js | |
| 7 | + * @Github: https://github.com/ly525/luban-h5 | |
| 8 | + * @Description: Do not edit | |
| 9 | + * @Copyright 2018 - 2019 luban-h5. All Rights Reserved | |
| 10 | + */ | |
| 1 | 11 | import placeholderImg from '@/assets/lbp-picture-placeholder.png' |
| 2 | 12 | |
| 3 | 13 | function getDefaultStyle (img, isPlaceholder) { |
| ... | ... | @@ -44,7 +54,7 @@ export default { |
| 44 | 54 | }, |
| 45 | 55 | render (h) { |
| 46 | 56 | let covers = [this.getCover(placeholderImg, true/** isPlaceholder */)] |
| 47 | - const coverImg = this.coverImageUrl | |
| 57 | + const coverImg = this.coverImageUrl.replace('http://localhost:1337', '') | |
| 48 | 58 | |
| 49 | 59 | if (this.qrcodeUrl) { |
| 50 | 60 | covers = this.getCoverBg(this.qrcodeUrl, true) | ... | ... |