ZZJ
2022-06-01 f3bf27d9bc7c8c6484be4f37edcc57df5490ecbe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<template>
  <img :src="url" alt="" />
</template>
 
<script>
export default {
  props: {
    src: {},
  },
  computed: {
    url() {
      let result = "";
      var reg = /^[0-9]/;
      if (reg.test(this.src)) {
        result = "http://" + this.src;
        return result;
      }
      return this.src;
    },
  },
};
</script>
 
<style>
</style>