update:优化新版个人训练
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user