Merge pull request '同步test' (#740) from Eeeros/forgeplus-react:gitlink_ssr_head into gitlink_ssr_head

1
This commit is contained in:
Eeeros 2024-05-31 17:26:08 +08:00
commit 4138b6e580
1 changed files with 7 additions and 13 deletions

View File

@ -281,17 +281,10 @@ class Detail extends Component {
console.log("--------start channel --------");
// 是镜像项目,且未完成迁移
this.canvasChannel();
if (num) {
this.setState({
secondSync: true,
firstSync: false
})
} else {
this.setState({
firstSync: true,
secondSync: false
})
}
this.setState({
firstSync: true,
secondSync: false
})
this.setState({
mirror_status:1
})
@ -348,7 +341,7 @@ class Detail extends Component {
disconnected: () => {
console.log("###### cannot connected! ######");
},
received: data => {
received: async data => {
console.log(`###### ---received data--- ######`);
if (data) {
if (deleteFlag) {
@ -358,7 +351,8 @@ class Detail extends Component {
if (data.project && data.project.mirror_status === 2) {
this.deleteProjectBack();
}
this.getDetail();
const projectdata = await getProjectDetailFunc(owner, projectsId, !window.location.host).data;
this.getDetail(projectdata)
this.getBanner();
}
this.setState({