From a8cc939b9a017ae8dbd7b2b28279b13e67a6c8da Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 31 三月 2026 17:14:40 +0800
Subject: [PATCH] 酒泉app 1.巡检上传图片预览修改

---
 src/pages/inspectionUpload/index.vue |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/pages/inspectionUpload/index.vue b/src/pages/inspectionUpload/index.vue
index 6ad7d83..6ff80b6 100644
--- a/src/pages/inspectionUpload/index.vue
+++ b/src/pages/inspectionUpload/index.vue
@@ -230,7 +230,7 @@
                 <view v-for="(file, index) in getCurrentViewAttachments()" :key="index" class="attachment-item"
                   @click="previewAttachment(file)">
                   <view class="attachment-preview-container">
-                    <image v-if="file.type === 'image' || isImageFile(file)" :src="file.url || file.downloadUrl"
+                    <image v-if="file.type === 'image' || isImageFile(file)" :src="getAttachmentImageUrl(file)"
                       class="attachment-preview" mode="aspectFill" />
                     <view v-else class="attachment-video-preview">
                       <u-icon name="video" size="24" color="#409eff"></u-icon>
@@ -937,8 +937,13 @@
   return ['jpg', 'jpeg', 'png', 'gif', 'webp'].includes(ext)
 }
 
+// 鑾峰彇鏌ョ湅闄勪欢鍥剧墖鐨勫畬鏁碪RL锛坖avaApi + url锛�
+const getAttachmentImageUrl = (file) => {
+  return file.url
+}
+
 // 鏂囦欢璁块棶鍩虹鍩燂紙鍚庣瑕佹眰鍓嶇紑锛�
-const filePreviewBase = 'http://1181ybjh99334.vicp.fun'
+const filePreviewBase = config.javaApi
 
 // 灏嗗悗绔繑鍥炵殑鏂囦欢鍦板潃瑙勮寖鎴愬彲璁块棶URL
 // 鍏煎鍦烘櫙锛�

--
Gitblit v1.9.3