上传地址问题优化
This commit is contained in:
		
							parent
							
								
									3db2a66c28
								
							
						
					
					
						commit
						a8e4987812
					
				| 
						 | 
				
			
			@ -238,7 +238,12 @@ export default {
 | 
			
		|||
        // 上传成功
 | 
			
		||||
        handleSuccess(res) {
 | 
			
		||||
            if (res.code === 200) {
 | 
			
		||||
                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 = []
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue