ZZJ
2022-04-22 fc17d4b6114ac373b28570837865998f5189e3a6
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>