Commit 080238bd authored by limingzhe's avatar limingzhe

fix:没开始 刷新也不好使

parent 3d403f93
...@@ -567,7 +567,6 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -567,7 +567,6 @@ export class PlayComponent implements OnInit, OnDestroy {
c.onEvent('game_start', (data, next) => { c.onEvent('game_start', (data, next) => {
this.setStoreData('progress', '1');
this.gameStart(); this.gameStart();
if (next) { if (next) {
...@@ -791,7 +790,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -791,7 +790,7 @@ export class PlayComponent implements OnInit, OnDestroy {
relink() { relink() {
const progress = this.getStoreData('progress'); const progress = this.getPageData('progress');
if (this.isTeacher) { if (this.isTeacher) {
if (progress != null) { if (progress != null) {
...@@ -1904,7 +1903,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -1904,7 +1903,7 @@ export class PlayComponent implements OnInit, OnDestroy {
if (this.sendBtn && this.sendBtn.visible) { if (this.sendBtn && this.sendBtn.visible) {
if (this.checkClickTargetSv(this.sendBtn)) { if (this.checkClickTargetSv(this.sendBtn)) {
this.sendServerEvent('game_start', {}); this.sendServerEvent('game_start', {});
// this.setPageData('progress', '1'); this.setPageData('progress', '1');
this.playAudio('submit', true); this.playAudio('submit', true);
} }
......
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