Commit 52531799 authored by limingzhe's avatar limingzhe

fix: 断线重连异常

parent 13acc05e
...@@ -238,7 +238,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -238,7 +238,7 @@ export class PlayComponent implements OnInit, OnDestroy {
} else { } else {
this.storeData = JSON.parse(storeDataStr); this.storeData = JSON.parse(storeDataStr);
} }
console.log('this.storeData: ', this.storeData); console.log('initStoreData this.storeData: ', this.storeData);
} }
setStoreData(key, value, isSend=true) { setStoreData(key, value, isSend=true) {
...@@ -671,22 +671,28 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -671,22 +671,28 @@ export class PlayComponent implements OnInit, OnDestroy {
if (progress == '1') { if (progress == '1') {
this.gameStart();
const progressStore = this.getStoreData('progress') const progressStore = this.getStoreData('progress')
if (progressStore == '2' || progressStore == '3') { if (progressStore == '2' || progressStore == '3') {
this.gameStart();
const submitCount = this.getStoreData('submitCount') const submitCount = this.getStoreData('submitCount')
this.submitCount = submitCount; this.submitCount = submitCount;
this.checkShowSubTemplateOne(); this.checkShowSubTemplateOne();
return; return;
} }
const resultData = this.getStoreData('resultData') if (progressStore == '4') {
if (resultData) {
this.initResultView(resultData);
return; return;
} }
// const resultData = this.getStoreData('resultData')
// if (resultData) {
// this.initResultView(resultData);
// return;
// }
this.gameStart();
return; 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