|
@@ -134,7 +134,8 @@ export default defineComponent({
|
|
|
state.visiableInfo.content = `你确定已掌握该题知识要点,此题将移除你的错题集。`;
|
|
|
state.visiableInfo.graspItem = item;
|
|
|
|
|
|
- if (state.questionList.length === 1) {
|
|
|
+ console.log(state.total, 'toa');
|
|
|
+ if (state.total <= 1) {
|
|
|
onAfter();
|
|
|
}
|
|
|
};
|
|
@@ -153,7 +154,7 @@ export default defineComponent({
|
|
|
|
|
|
eventUnit.emit('unitAudioStop');
|
|
|
// 只有一道题
|
|
|
- if (state.total === 1) {
|
|
|
+ if (state.total <= 1) {
|
|
|
router.back();
|
|
|
router.back();
|
|
|
return;
|
|
@@ -336,8 +337,12 @@ export default defineComponent({
|
|
|
} else if (operationType === 'BACK') {
|
|
|
state.visiableInfo.show = false;
|
|
|
onAfter();
|
|
|
- } else if (operationType === 'CONTINUE' || operationType === 'GRASP') {
|
|
|
+ } else if (operationType === 'CONTINUE') {
|
|
|
state.visiableInfo.show = false;
|
|
|
+ } else if (operationType === 'GRASP') {
|
|
|
+ state.visiableInfo.show = false;
|
|
|
+ window.history.pushState(null, '', document.URL);
|
|
|
+ window.addEventListener('popstate', onBack, false);
|
|
|
}
|
|
|
};
|
|
|
|