Browse Source

feat:ui log delete

wanghao 1 month ago
parent
commit
a30967c9da
1 changed files with 1 additions and 3 deletions
  1. 1 3
      obui/app/scripts/components/node-details.js

+ 1 - 3
obui/app/scripts/components/node-details.js

@@ -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();
   }