Commit 52531799 authored by limingzhe's avatar limingzhe

fix: 断线重连异常

parent 13acc05e
......@@ -238,7 +238,7 @@ export class PlayComponent implements OnInit, OnDestroy {
} else {
this.storeData = JSON.parse(storeDataStr);
}
console.log('this.storeData: ', this.storeData);
console.log('initStoreData this.storeData: ', this.storeData);
}
setStoreData(key, value, isSend=true) {
......@@ -671,21 +671,27 @@ export class PlayComponent implements OnInit, OnDestroy {
if (progress == '1') {
this.gameStart();
const progressStore = this.getStoreData('progress')
if (progressStore == '2' || progressStore == '3') {
this.gameStart();
const submitCount = this.getStoreData('submitCount')
this.submitCount = submitCount;
this.checkShowSubTemplateOne();
return;
}
const resultData = this.getStoreData('resultData')
if (resultData) {
this.initResultView(resultData);
if (progressStore == '4') {
return;
}
// const resultData = this.getStoreData('resultData')
// if (resultData) {
// this.initResultView(resultData);
// return;
// }
this.gameStart();
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment