heyujie
2022-04-22 53cb8137e4232f50c5334176419298f99d41a2bf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<template>
  <img :src="url" alt="" />
</template>
 
<script>
export default {
  props: {
    src: {},
  },
  computed: {
    url() {
      if (this.src.indexOf("http://apps.smartai.com/httpImage/") === -1) {
        return "httpImage" + this.src;
      } else {
        return this.src;
      }
    },
  },
};
</script>
 
<style>
</style>