fix:图片编辑时丢失上次保存问题修正
This commit is contained in:
parent
d3e788ffe0
commit
3c96c48d2e
|
|
@ -444,8 +444,13 @@ export default {
|
|||
obj.path = item.path;
|
||||
files.push(obj);
|
||||
})
|
||||
this.paramsJsonFileurl = files;
|
||||
this.params_json.fileurl = JSON.stringify(files);
|
||||
if(that.fileurl.length>0){
|
||||
this.paramsJsonFileurl = files.concat(that.fileurl);
|
||||
}else{
|
||||
this.paramsJsonFileurl = files;
|
||||
}
|
||||
|
||||
this.params_json.fileurl = JSON.stringify(this.paramsJsonFileurl);
|
||||
},
|
||||
//合并新增的图片Ids
|
||||
imagesDel(index){
|
||||
|
|
@ -482,9 +487,7 @@ export default {
|
|||
}
|
||||
if(data.process_name=='排一次棒'){
|
||||
that.params_json=that.form.params_json;
|
||||
console.log('that.params_json',that.params_json);
|
||||
let fileurl = JSON.parse(that.params_json.fileurl);
|
||||
console.log('fileurl',fileurl);
|
||||
fileurl.forEach((item)=>{
|
||||
item.url = item.path;
|
||||
that.fileurl.push(item);
|
||||
|
|
|
|||
Loading…
Reference in New Issue