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>