Browse Source

节点页面

wlf 9 months ago
parent
commit
3c170239ef
1 changed files with 7 additions and 7 deletions
  1. 7 7
      client/app/scripts/components/node-details.js

+ 7 - 7
client/app/scripts/components/node-details.js

@@ -102,13 +102,13 @@ class NodeDetails extends React.Component {
 
 
     //上线时打开开始
-    // this.setQueryParams();//做为iframe嵌套时打开,上线时打开
-    // const traceURL = `http://${parent.location.hostname}`
-    // this.setState({
-    //   traceUrl:traceURL
-    // },()=>{
-    //   console.log(this.state.traceUrl,'traceUrl,用于traceid跳转')
-    // })
+    this.setQueryParams();//做为iframe嵌套时打开,上线时打开
+    const traceURL = `http://${parent.location.hostname}`
+    this.setState({
+      traceUrl:traceURL
+    },()=>{
+      console.log(this.state.traceUrl,'traceUrl,用于traceid跳转')
+    })
      //上线时打开结束
 
     // this.getNodeBasic();