From 8aa85b0dfd3d0305e06b3e4637ba708bbf4a4f77 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 31 三月 2026 15:39:20 +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