From 4a68a94d5e429eca8b01a24bdbf601c0331ff73d Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 09 三月 2026 17:27:51 +0800
Subject: [PATCH] 保养预览
---
src/pages/inspectionUpload/index.vue | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/pages/inspectionUpload/index.vue b/src/pages/inspectionUpload/index.vue
index d77e951..c0293dd 100644
--- a/src/pages/inspectionUpload/index.vue
+++ b/src/pages/inspectionUpload/index.vue
@@ -281,7 +281,7 @@
class="attachment-item"
@click="previewAttachment(file)">
<view class="attachment-preview-container">
- {{formatFileUrl(file.url || file.downloadUrl)}}
+ <!-- {{formatFileUrl(file.url || file.downloadUrl)}} -->
<image v-if="file.type === 'image' || isImageFile(file)"
:src="formatFileUrl(file.url || file.downloadUrl)"
class="attachment-preview"
@@ -1054,7 +1054,7 @@
};
// 鏂囦欢璁块棶鍩虹鍩燂紙鍚庣瑕佹眰鍓嶇紑锛�
- const filePreviewBase = config.baseUrl;
+ const filePreviewBase = config.fileUrl;
// 灏嗗悗绔繑鍥炵殑鏂囦欢鍦板潃瑙勮寖鎴愬彲璁块棶URL
// 鍏煎鍦烘櫙锛�
@@ -1596,12 +1596,12 @@
if (url.startsWith("http://") || url.startsWith("https://")) {
return url;
}
- const uploadsIndex = url.indexOf("uploads");
- if (uploadsIndex !== -1) {
- const relativePath = url.substring(uploadsIndex);
- return `${config.baseUrl}/${relativePath}`;
- }
- return `${config.baseUrl}/${url}`;
+ // const uploadsIndex = url.indexOf("uploads");
+ // if (uploadsIndex !== -1) {
+ // const relativePath = url.substring(uploadsIndex);
+ // return `${config.fileUrl}/${relativePath}`;
+ // }
+ return `${config.fileUrl}/${url}`;
};
// 鏍煎紡鍖栨枃浠跺ぇ灏�
const formatFileSize = size => {
--
Gitblit v1.9.3