diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js index fe19c2c5d..c07fe8f03 100644 --- a/src/forge/Main/Detail.js +++ b/src/forge/Main/Detail.js @@ -282,13 +282,13 @@ class Detail extends Component { }else{ if (data.type !== 0 && data.mirror_status === 1) { console.log("--------start channel --------"); - // 是镜像项目,且未完成迁移 - this.canvasChannel(); this.setState({ firstSync: true, secondSync: false, mirror_status:1 }) + // 是镜像项目,且未完成迁移 + this.canvasChannel(); } else if (data.mirror_status === 2) { this.toMirrorFunc(); } else { @@ -360,6 +360,7 @@ class Detail extends Component { mirror_status:data.project && data.project.mirror_status, secondSync: false }); + this.reloadDetail(); cable.subscriptions.consumer.disconnect(); } }, @@ -370,7 +371,7 @@ class Detail extends Component { // 如果是火狐,由于部分版本ws不能连接成功,故增加刷新 // if(navigator.userAgent.indexOf("Firefox")>-1){ - this.timerChannel = setTimeout(this.reloadDetail, 10000); + // this.timerChannel = setTimeout(this.reloadDetail, 10000); // } }