From 3639c456d1889cd3e688191a4398af8a3f49679c Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期三, 12 四月 2023 15:29:21 +0800 Subject: [PATCH] 添加常量的公共数据. 增加场景名称 --- src/views/index/components/productLeft.vue | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/index/components/productLeft.vue b/src/views/index/components/productLeft.vue index 1f1a4b7..e1c213e 100644 --- a/src/views/index/components/productLeft.vue +++ b/src/views/index/components/productLeft.vue @@ -2,7 +2,7 @@ <div class="productLeft" :style="{ - background: ` url(${data.pic})`, + background: ` url(${pic})`, backgroundSize: '100% 100%', backgroundRepeat: 'no-repeat', }" @@ -31,9 +31,10 @@ created() { var reg = /^[0-9]/; if (reg.test(this.data.pic)) { - this.pic = "http://" + this.data.pic; + this.pic = "/httpImage/" + this.data.pic; + } else { + this.pic = this.data.pic; } - this.pic = this.data.pic; }, data() { return { -- Gitblit v1.8.0