fuliqi
2024-09-30 e68547e2ed7d8668f1f0532c003a0f418ec85e23
src/components/ImagePreview/index.vue
@@ -32,7 +32,8 @@
  },
  computed: {
    realSrc() {
      if (!this.src) {
      const imageExtensions = /\.(jpg|jpeg|png|gif|bmp|svg)$/i;
      if (!this.src || !imageExtensions.test(this.src)) {
        return DEFAULT_IMAGE;
      }
      let real_src = this.src.split(",")[0];