ZZJ
2022-07-11 07d14cf6edbef9436aa5909bcb6b2329ecc6f9a2
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 {