From 2f0fa3545b539e8b6f952ea82a1ca2350c64a0e8 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期二, 22 四月 2025 17:28:48 +0800 Subject: [PATCH] fix:修改报警,添加参数 --- src/views/facility/facilityType/index.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/facility/facilityType/index.vue b/src/views/facility/facilityType/index.vue index 5c40409..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,11 +208,11 @@ > <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> - <el-table-column label="操作" width="180" align="center" class-name="small-padding fixed-width"> + <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <template #default="scope"> <el-button link type="primary" icon="Edit" v-has="['update',route]" @click="handleUpdate(scope.row)">修改 -- Gitblit v1.9.3