ZZJ
2022-06-02 0beaa1594c4237fd84c82c91337d9bb6b4ce1e51
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>