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