导入项目

This commit is contained in:
caishi 2024-06-05 13:47:23 +08:00
parent 1c2a8e4929
commit e05dfcca69
1 changed files with 4 additions and 3 deletions

View File

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