刘鹏飞
2023-04-10 4952ac0a3dba9880a2ab5feef36b215c36457573
ruoyi-ui/src/components/ImagePreview/index.vue
@@ -19,7 +19,7 @@
  props: {
    src: {
      type: String,
      required: true
      default: ""
    },
    width: {
      type: [Number, String],
@@ -32,6 +32,9 @@
  },
  computed: {
    realSrc() {
      if (!this.src) {
        return;
      }
      let real_src = this.src.split(",")[0];
      if (isExternal(real_src)) {
        return real_src;
@@ -39,6 +42,9 @@
      return process.env.VUE_APP_BASE_API + real_src;
    },
    realSrcList() {
      if (!this.src) {
        return;
      }
      let real_src_list = this.src.split(",");
      let srcList = [];
      real_src_list.forEach(item => {