Commit 32916f24 authored by liujiangnan's avatar liujiangnan

feat

parent d175907d
......@@ -149,14 +149,18 @@ new Vue({
if (isSelectionCorrect) {
// 回答正确,显示庆祝动画
this.showCelebration = true;
// 延迟重置选择,让用户看到错误信息
setTimeout(() => {
this.resetAnswer();
callServerMethod('finished', {});
}, 3000);
} else {
// 回答错误,显示错误动画并重置选择
this.showError = true;
// 延迟重置选择,让用户看到错误信息
setTimeout(() => {
this.resetAnswer();
callServerMethod('finished', {});
}, 2000);
}, 1000);
}
},
......
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