上传地址问题优化

This commit is contained in:
bb_pan 2025-03-25 09:50:32 +08:00
parent 3db2a66c28
commit a8e4987812
1 changed files with 6 additions and 1 deletions

View File

@ -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 = []