导入项目
This commit is contained in:
parent
1c2a8e4929
commit
e05dfcca69
|
|
@ -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);
|
||||
// }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue