diff --git a/src/pages/exchangepage/edittemplate/main.js b/src/pages/exchangepage/edittemplate/main.js index ba010e34..197bd39c 100644 --- a/src/pages/exchangepage/edittemplate/main.js +++ b/src/pages/exchangepage/edittemplate/main.js @@ -188,6 +188,7 @@ getLandingdata(val){ this.canvasImg.style.display='block'; thumbresult =await this.canvasImgFn(); }else{ + this.setState({activeNavStatus:1}); this.canvasImg.style.display='block'; thumbresult =await this.canvasImgFn(); } diff --git a/src/pages/exchangepage/template/main.js b/src/pages/exchangepage/template/main.js index 800b25c3..9108d473 100644 --- a/src/pages/exchangepage/template/main.js +++ b/src/pages/exchangepage/template/main.js @@ -266,8 +266,6 @@ export default class mytemplate extends React.Component{ return } - - if(this.state.sourceIndex == 0) { copyThemecustom(row.id).then(res=>{ diff --git a/src/pages/exchangepage/template/preview.js b/src/pages/exchangepage/template/preview.js index 83d31b80..052fb221 100644 --- a/src/pages/exchangepage/template/preview.js +++ b/src/pages/exchangepage/template/preview.js @@ -24,10 +24,10 @@ export default class acclist extends React.Component{ let img = document.getElementById("preview-center-img") // center.style.height = img.scrollHeight + "px"; let imgHeight=this.refs; - // img.onload = function (e) { - // center.style.height = img.clientHeight + "px"; - // }offsetHeight - console.log(29,imgHeight); + img.onload = function (e) { + center.style.height = imgHeight.middleCenter.clientHeight + "px"; + } + } exchangeBtn(){ @@ -67,7 +67,7 @@ export default class acclist extends React.Component{ { propsData.model.middle_image?: } - + {/* */}