ZZJ
2022-06-23 f7f0e44c4be8eb0e77fd310296c3b43bde21e4f9
src/views/index/components/productLeft.vue
@@ -28,6 +28,18 @@
      type: Object,
    },
  },
  created() {
    var reg = /^[0-9]/;
    if (reg.test(this.data.pic)) {
      this.pic = "http://" + this.data.pic;
    }
    this.pic = this.data.pic;
  },
  data() {
    return {
      pic: "",
    };
  },
};
</script>