ZZJ
2022-06-15 4f7f16803ab5ed7b8a8a0dc087792d9b2fcefe2b
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
26
27
<template>
  <img class="a111" :src="url" alt="" />
</template>
 
<script>
export default {
  props: {
    src: {},
  },
  computed: {
    url() {
      if (
        this.src &&
        this.src.indexOf("http://apps.smartai.com/httpImage/") === -1 &&
        this.src.indexOf("/images") !== 0
      ) {
        return "/httpImage/" + this.src;
      } else {
        return this.src;
      }
    },
  },
};
</script>
 
<style>
</style>