diff --git a/site/edit/template/components/Iframe.jsx b/site/edit/template/components/Iframe.jsx index 62908062..ced1feaa 100644 --- a/site/edit/template/components/Iframe.jsx +++ b/site/edit/template/components/Iframe.jsx @@ -24,19 +24,19 @@ class Iframe extends React.Component { updatePost({ templateData }) { const { type } = templateData; - console.log('数据加载状态:', templateData.type); + // console.log('数据加载状态:', templateData.type); if (type === 'success' && this.iframe.contentWindow && this.iframe.contentWindow.postMessage) { // 与 iframe 通信; - console.log('与 iframe 通信成功', templateData); + // console.log('与 iframe 通信成功', templateData); this.iframe.contentWindow.postMessage(templateData, '*'); } } getData = () => { const { dispatch, templateData } = this.props; - console.log('iframe 加载状态:', templateData.type); + // console.log('iframe 加载状态:', templateData.type); if (templateData.type === 'success') { this.updatePost(this.props); } else { diff --git a/site/templates/template/layout.jsx b/site/templates/template/layout.jsx index 455214cb..fe3bb6fa 100644 --- a/site/templates/template/layout.jsx +++ b/site/templates/template/layout.jsx @@ -101,12 +101,12 @@ class Layout extends React.Component { messageHandle = (e) => { // FIXME: need much better assert condition - console.log('预览页接收:', e.data); + // console.log('预览页接收:', e.data); if (e.data.type && e.data.type.indexOf('webpack') === -1 && e.data.uid) { /* Object.keys(localStorage).forEach((key) => { localStorage.removeItem(key); }); */ - console.log('预览页接收成功:', e.data); + // console.log('预览页接收成功:', e.data); ls.saveTemplate({ id: e.data.uid, attributes: e.data.data,