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

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

diff --git a/src/config.js b/src/config.js
index 6b9e284..93e8d0f 100644
--- a/src/config.js
+++ b/src/config.js
@@ -1,6 +1,7 @@
 // 搴旂敤鍏ㄥ眬閰嶇疆
 const config = {
   baseUrl: 'http://114.132.189.42:9017', // 鍗庣幒鐮傛祮
+  javaApi: 'http://114.132.189.42:9062', // 鍗庣幒鐮傛祮
    // 搴旂敤淇℃伅
    appInfo: {
      // 搴旂敤鍚嶇О
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