From a8e49878126ce09f105c73653e8e622266091248 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Tue, 25 Mar 2025 09:50:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=9C=B0=E5=9D=80=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/swiper-manage/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/swiper-manage/index.vue b/src/views/swiper-manage/index.vue index ab13146f..ad27029f 100644 --- a/src/views/swiper-manage/index.vue +++ b/src/views/swiper-manage/index.vue @@ -238,7 +238,12 @@ export default { // 上传成功 handleSuccess(res) { if (res.code === 200) { - this.addSwiperForm.slidePicture = res.data.url + console.log('🚀 ~ 上传 ~ process.env.VUE_APP_BASE_API:', process.env.VUE_APP_BASE_API) + if (process.env.VUE_APP_BASE_API == '/iws/jxhzb-api') { + this.addSwiperForm.slidePicture = 'http://sgwpdm.ah.sgcc.com.cn/iws/ahbns/' + res.data.url + } else { + this.addSwiperForm.slidePicture = res.data.url + } } else { this.$modal.msgError('上传失败') this.addSwiperForm.fileList = []