// 加了dispose,应该不会重现了,暂时注释掉reload

dev_cs
hjm 6 years ago
parent 2f04235761
commit 66026a77ac

@ -308,11 +308,12 @@ class MainContentContainer extends Component {
// }) // })
}).then((fetchRepositoryCodeResponse) => { }).then((fetchRepositoryCodeResponse) => {
// monaca 需要刷新,不然无法编辑 // monaca 需要刷新,不然无法编辑
if (this.retryAndRefresh && fetchRepositoryCodeResponse.data.content) { // 加了dispose应该不会重现了暂时注释掉reload
this.retryAndRefresh = false; // if (this.retryAndRefresh && fetchRepositoryCodeResponse.data.content) {
window.location.reload() // this.retryAndRefresh = false;
return; // window.location.reload()
} // return;
// }
// 空字符串还是正常切换 // 空字符串还是正常切换
if (fetchRepositoryCodeResponse.data.status == 0) { if (fetchRepositoryCodeResponse.data.status == 0) {
readingRepoTimes = readingRepoTimes + 1; readingRepoTimes = readingRepoTimes + 1;

Loading…
Cancel
Save