|
@@ -143,6 +143,8 @@ export default defineComponent({
|
|
|
});
|
|
|
state.visiableInfo.graspItem.grasp = true;
|
|
|
|
|
|
+ eventUnit.emit('unitAudioStop');
|
|
|
+
|
|
|
// 只有一道题
|
|
|
if (state.questionList.length === 1) {
|
|
|
onAfter();
|
|
@@ -304,7 +306,8 @@ export default defineComponent({
|
|
|
router.back();
|
|
|
} else if (state.visiableInfo.operationType === 'BACK') {
|
|
|
state.visiableInfo.show = false;
|
|
|
- onAfter();
|
|
|
+ window.history.pushState(null, '', document.URL);
|
|
|
+ window.addEventListener('popstate', onBack, false);
|
|
|
} else if (state.visiableInfo.operationType === 'CONTINUE') {
|
|
|
onResultPopup();
|
|
|
} else if (state.visiableInfo.operationType === 'GRASP') {
|
|
@@ -316,8 +319,7 @@ export default defineComponent({
|
|
|
if (operationType === 'RESULT') {
|
|
|
} else if (operationType === 'BACK') {
|
|
|
state.visiableInfo.show = false;
|
|
|
- window.history.pushState(null, '', document.URL);
|
|
|
- window.addEventListener('popstate', onBack, false);
|
|
|
+ onAfter();
|
|
|
} else if (operationType === 'CONTINUE' || operationType === 'GRASP') {
|
|
|
state.visiableInfo.show = false;
|
|
|
}
|