diff --git a/src/apis.js b/src/apis.js index 32e87a1..5e785ea 100644 --- a/src/apis.js +++ b/src/apis.js @@ -119,10 +119,3 @@ export const readyGameAPI = (battleId) => { battleId, }); }; - -export const finishGameAPI = (battleId, arrow) => { - return request("POST", "/user/game/shoot", { - battleId, - arrow, - }); -}; diff --git a/src/components/Container.vue b/src/components/Container.vue index 7a76c57..11f0253 100644 --- a/src/components/Container.vue +++ b/src/components/Container.vue @@ -28,5 +28,9 @@ defineProps({ width: 100%; height: calc(100vh - 96px); overflow: auto; + display: flex; + flex-direction: column; + align-items: center; + justify-content: space-between; } diff --git a/src/pages/first-try.vue b/src/pages/first-try.vue index 1631d1b..39105af 100644 --- a/src/pages/first-try.vue +++ b/src/pages/first-try.vue @@ -46,6 +46,7 @@ onMounted(() => { if (scores.value.length === total) { showScore.value = true; } + // if (step.value === 2 && msg.target.dst / 100 > 5) { if (step.value === 2 && msg.target.dst > 5) { btnDisabled.value = false; } @@ -68,7 +69,6 @@ const nextStep = async () => { if (step.value === 0) { step.value = 1; } else if (step.value === 1) { - await createPractise(1); btnDisabled.value = true; step.value = 2; } else if (step.value === 2) { @@ -95,109 +95,116 @@ const onClose = () => {