zhangwencui
5 天以前 6b0dacaccba1c5ee2b431a80d44673ec81eb94c8
src/pages/inspectionUpload/index.vue
@@ -281,7 +281,6 @@
                      class="attachment-item"
                      @click="previewAttachment(file)">
                  <view class="attachment-preview-container">
                    {{formatFileUrl(file.url || file.downloadUrl)}}
                    <image v-if="file.type === 'image' || isImageFile(file)"
                           :src="formatFileUrl(file.url || file.downloadUrl)"
                           class="attachment-preview"
@@ -1599,9 +1598,9 @@
    const uploadsIndex = url.indexOf("uploads");
    if (uploadsIndex !== -1) {
      const relativePath = url.substring(uploadsIndex);
      return `${config.baseUrl}/${relativePath}`;
      return `${config.fileUrl}/${relativePath}`;
    }
    return `${config.baseUrl}/${url}`;
    return `${config.fileUrl}/${url}`;
  };
  // 格式化文件大小
  const formatFileSize = size => {