From e05dfcca6952c5103bd0393aaf791e5a807e5a2c Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Wed, 5 Jun 2024 13:47:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/Detail.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); // } }