From 98247bb0b4da9a322c97867262c1a76c53ace520 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期三, 26 三月 2025 17:05:18 +0800 Subject: [PATCH] fix: 生态报表 --- src/views/facility/facilityType/index.vue | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/facility/facilityType/index.vue b/src/views/facility/facilityType/index.vue index 45b0355..d484b16 100644 --- a/src/views/facility/facilityType/index.vue +++ b/src/views/facility/facilityType/index.vue @@ -12,7 +12,7 @@ const route = useRoute(); const {proxy} = getCurrentInstance(); - +const imgBaseUrl = import.meta.env.VITE_APP_IMG_BASEURL //图片前缀 /** * 搜索相关 @@ -119,7 +119,7 @@ //上传文件,添加图片地址信息 const uploadData = (data) => { - form.value.headImg = data.newFileView + form.value.headImg = imgBaseUrl + data.newFileView } /** 提交按钮 */ @@ -208,7 +208,7 @@ > <template #default="scope"> <div v-if="key.toString() == 'headImg'"> - <img :src="scope.row.headImg" class="table-headImg"/> + <img :src="imgBaseUrl + scope.row.headImg" class="table-headImg" alt="" /> </div> </template> </el-table-column> -- Gitblit v1.9.3