forked from Gitlink/forgeplus-react
紧急修复镜像bug
This commit is contained in:
parent
3a1fd14e7c
commit
e8dadb187b
|
@ -216,7 +216,7 @@ class Detail extends Component {
|
|||
if(num){
|
||||
this.setState({
|
||||
secondSync:true,
|
||||
firsrtSync:false
|
||||
firstSync:false
|
||||
})
|
||||
}else{
|
||||
this.setState({
|
||||
|
@ -227,7 +227,7 @@ class Detail extends Component {
|
|||
}else{
|
||||
this.getDetail();
|
||||
this.setState({
|
||||
firsrtSync:false,
|
||||
firstSync:false,
|
||||
secondSync:false
|
||||
})
|
||||
}
|
||||
|
@ -248,7 +248,7 @@ class Detail extends Component {
|
|||
var cable = actioncable.createConsumer(`wss://${name}/cable`);
|
||||
this.canvasChannel1 = cable.subscriptions.create({
|
||||
channel: `MirrorProjectChannel`,
|
||||
id: project && project.identifier
|
||||
id: project && project.id
|
||||
}, {
|
||||
connected: () => {
|
||||
console.log("###### channel connected! ######");
|
||||
|
@ -258,6 +258,10 @@ class Detail extends Component {
|
|||
console.log(`###### ---received data--- ######`);
|
||||
if (data) {
|
||||
this.getDetail();
|
||||
this.setState({
|
||||
firstSync:false,
|
||||
secondSync:false
|
||||
});
|
||||
cable.subscriptions.consumer.disconnect();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue