From 6b0dacaccba1c5ee2b431a80d44673ec81eb94c8 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 09 三月 2026 13:58:01 +0800
Subject: [PATCH] 加fileUrl路径
---
src/pages/inspectionUpload/index.vue | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/pages/inspectionUpload/index.vue b/src/pages/inspectionUpload/index.vue
index d77e951..7ac9f3d 100644
--- a/src/pages/inspectionUpload/index.vue
+++ b/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 => {
--
Gitblit v1.9.3