ZZJ
2022-06-24 5abe36e584db5b5c0e09c5bbe5949555e530399e
src/components/subComponents/ImageShow.vue
@@ -1,5 +1,5 @@
<template>
  <img :src="url" alt="" />
  <img class="a111" :src="url" alt="" />
</template>
<script>
@@ -9,8 +9,12 @@
  },
  computed: {
    url() {
      if (this.src.indexOf("http://apps.smartai.com/httpImage/") === -1) {
        return "httpImage" + this.src;
      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;
      }