diff --git a/src/pages/exchangepage/template/main.js b/src/pages/exchangepage/template/main.js index 20857dc3..4ef89652 100644 --- a/src/pages/exchangepage/template/main.js +++ b/src/pages/exchangepage/template/main.js @@ -194,6 +194,21 @@ export default class mytemplate extends React.Component { }else{ previewInfo=row.exchange; } + if(!previewInfo){//新增模板,没有数据,需要拼接组装 + previewInfo={ + land:{ + describe:{} + }, + product_list:{ + list:'', + describe:{} + + }, + product_detail:{ + describe:{} + } + } + } console.log(14,previewInfo); this.setState({ preview_visible: true,previewData:previewInfo, showType: row.page,moudleData: row, showPage: 1, pageStep: 1, activeHeight: 667, setStyle: { width: '375px', height: '667px', transform: 'scale(0.75)' } }); }