解决系统模板切换模板类型,数据污染

This commit is contained in:
red-deng-deng 2022-01-20 17:26:13 +08:00
parent 8676af3edc
commit faf11cd1a5
1 changed files with 6 additions and 2 deletions

View File

@ -178,11 +178,15 @@ getLandingdata(val){
let thumbresult=null; let thumbresult=null;
if(mouldType==0){//系统模板 if(mouldType==0){//系统模板
if(this.state.showType!=3){ if(this.state.showType!=3){
let exchangeFlag=await this.onmodelChange({target:{value:3}});
exchangeStateData=_.clone(this.state); exchangeStateData=_.clone(this.state);
} }
this.canvasImg.style.display='block';
thumbresult =await this.canvasImgFn();
}else{
this.canvasImg.style.display='block';
thumbresult =await this.canvasImgFn();
} }
this.canvasImg.style.display='block';
thumbresult =await this.canvasImgFn();
let formdata = { let formdata = {
"title": exchangeStateData.model.title, "title": exchangeStateData.model.title,