|
@@ -623,8 +623,18 @@ export default {
|
|
|
this.isChartLoading = true
|
|
|
const params = new FormData();
|
|
|
params.append('Image',$event.src)
|
|
|
- const { Data } = await dataBaseInterface.uploadImg(params);
|
|
|
- this.imgUrl = Data.ResourceUrl
|
|
|
+ const res = await dataBaseInterface.uploadImg(params);
|
|
|
+ if(!res||res&&res.Ret!==200){
|
|
|
+ this.isChartLoading = false
|
|
|
+ return
|
|
|
+ }
|
|
|
+ const {Data} = res
|
|
|
+ if(!Data){
|
|
|
+ this.$message.warning("上传图片失败")
|
|
|
+ this.isChartLoading = false
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.imgUrl = Data.ResourceUrl||''
|
|
|
/* this.imgUrl = $event.src */
|
|
|
//console.log('OK',$event)
|
|
|
let temp_elements = this.addElement(
|