完成新手试炼接口调试
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user