|
@@ -132,7 +132,6 @@ class NodeDetails extends React.Component {
|
|
|
_this.getMethodByshape(_this)
|
|
|
});
|
|
|
}
|
|
|
- console.log(88888888888,'componentDidMount')
|
|
|
window.addEventListener('message', function(event) {
|
|
|
// 处理接收到的消息
|
|
|
const data = event.data
|
|
@@ -219,8 +218,7 @@ class NodeDetails extends React.Component {
|
|
|
window.addEventListener('beforeunload',this.handleBeforeUnload)
|
|
|
}
|
|
|
componentWillUnmount() {
|
|
|
- console.log(2222222222222,'componentWillUnmount')
|
|
|
- window.removeEventListener('beforeunload', this.handleBeforeUnload);
|
|
|
+ window.removeEventListener('beforeunload', this.handleBeforeUnload);
|
|
|
clearTimeout(this.timeoutId);
|
|
|
resetDocumentTitle();
|
|
|
}
|