From a0b5604fcefa0c7900ecc50830b718f77bba8f39 Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期五, 15 七月 2022 14:43:40 +0800
Subject: [PATCH] add cluster pwd

---
 src/views/index/components/productLeft.vue |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/views/index/components/productLeft.vue b/src/views/index/components/productLeft.vue
index e69b73d..1f1a4b7 100644
--- a/src/views/index/components/productLeft.vue
+++ b/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>
 

--
Gitblit v1.8.0