完成新手试炼接口调试

This commit is contained in:
kron
2025-05-30 13:58:43 +08:00
parent 57b25e7805
commit 01a327e40e
9 changed files with 74 additions and 29 deletions

View File

@@ -1,5 +1,5 @@
<script setup>
import { ref, onMounted, onUnmounted } from "vue";
import { ref, onUnmounted } from "vue";
import AppBackground from "@/components/AppBackground.vue";
import Header from "@/components/Header.vue";
import ShootProgress from "@/components/ShootProgress.vue";
@@ -20,8 +20,8 @@ const onReady = async () => {
start.value = true;
const token = uni.getStorageSync("token");
websocket.createWebSocket(token, (result) => {
const messages = JSON.parse(result).data.updates || [];
websocket.createWebSocket(token, (content) => {
const messages = JSON.parse(content).data.updates || [];
messages.forEach((msg) => {
if (msg.constructor === MESSAGETYPES.ShootSyncMeArrowID) {
scores.value.push(msg.target);