update:优化新版个人训练

This commit is contained in:
2026-07-23 14:38:45 +08:00
parent c0d061d7d5
commit ef499e1448
6 changed files with 293 additions and 25 deletions
+13 -2
View File
@@ -86,6 +86,8 @@ const props = defineProps({
},
});
const emit = defineEmits(["shot-effect-complete"]);
const pMode = ref(true);
const latestOne = ref(null);
const bluelatestOne = ref(null);
@@ -248,16 +250,25 @@ function triggerShotEffect(shot, index) {
clearTipTimer();
latestOne.value = null;
hiddenLatestKey.value = key;
shotEffect.value = { key, shot };
shotEffect.value = {
key,
shot,
token: props.shotEffectToken,
};
}
function completeShotEffect(key) {
if (!shotEffect.value || shotEffect.value.key !== key) return;
const shot = shotEffect.value.shot;
const completedEffect = shotEffect.value;
const shot = completedEffect.shot;
hiddenLatestKey.value = "";
shotEffect.value = null;
showShotTip(shot);
emit("shot-effect-complete", {
key,
token: completedEffect.token,
});
}
function shouldHideLatestHit(index) {