|
|
@@ -691,7 +691,7 @@ export default {
|
|
|
|
|
|
// 设置阶段保存触发
|
|
|
setupStep() {
|
|
|
- if (this.work.stage === 'setup') this.$emit('setTestJson', this.work);
|
|
|
+ // if (this.work.stage === 'setup') this.$emit('setTestJson', this.work);
|
|
|
},
|
|
|
|
|
|
// 帽子切换 → 重置倒计时
|
|
|
@@ -765,7 +765,7 @@ export default {
|
|
|
this.currentHatIdx = 0;
|
|
|
|
|
|
// 同步父组件保存,避免下次加载重复 isFresh
|
|
|
- this.$nextTick(() => this.$emit('setTestJson', merged));
|
|
|
+ // this.$nextTick(() => this.$emit('setTestJson', merged));
|
|
|
}
|
|
|
|
|
|
this.work = merged;
|
|
|
@@ -799,7 +799,7 @@ export default {
|
|
|
} else {
|
|
|
this.startActivity();
|
|
|
}
|
|
|
- this.$emit('setTestJson', this.work);
|
|
|
+ // this.$emit('setTestJson', this.work);
|
|
|
},
|
|
|
|
|
|
// —— 计时设置 ——
|
|
|
@@ -831,7 +831,7 @@ export default {
|
|
|
this.work.hatContent = content;
|
|
|
this.work.stage = 'activity';
|
|
|
this.currentHatIdx = 0;
|
|
|
- this.$emit('setTestJson', this.work);
|
|
|
+ // this.$emit('setTestJson', this.work);
|
|
|
},
|
|
|
backToSetup() {
|
|
|
this.clearCountdown();
|
|
|
@@ -841,7 +841,7 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
this.work.stage = 'setup';
|
|
|
- this.$emit('setTestJson', this.work);
|
|
|
+ // this.$emit('setTestJson', this.work);
|
|
|
},
|
|
|
prevHat() {
|
|
|
if (this.currentHatIdx > 0) this.currentHatIdx--;
|
|
|
@@ -850,7 +850,7 @@ export default {
|
|
|
if (this.isLastHat) {
|
|
|
this.work.stage = 'review';
|
|
|
this.clearCountdown();
|
|
|
- this.$emit('setTestJson', this.work);
|
|
|
+ //this.$emit('setTestJson', this.work);
|
|
|
} else {
|
|
|
this.currentHatIdx++;
|
|
|
}
|
|
|
@@ -927,7 +927,7 @@ export default {
|
|
|
this.work.stage = 'activity';
|
|
|
this.currentHatIdx = 0;
|
|
|
}
|
|
|
- this.$emit('setTestJson', this.work);
|
|
|
+ // this.$emit('setTestJson', this.work);
|
|
|
},
|
|
|
restart() {
|
|
|
if (this.$confirm) {
|
|
|
@@ -950,7 +950,7 @@ export default {
|
|
|
this.work.stage = 'activity';
|
|
|
this.clearCountdown();
|
|
|
this.restartCountdown();
|
|
|
- this.$emit('setTestJson', this.work);
|
|
|
+ //this.$emit('setTestJson', this.work);
|
|
|
},
|
|
|
|
|
|
// —— 语音输入 ——
|