submit
This commit is contained in:
parent
2c0698910e
commit
b14826e6d1
@ -166,6 +166,7 @@ const exchange=async (item)=>{
|
|||||||
console.log(res,'onSocketOpen')
|
console.log(res,'onSocketOpen')
|
||||||
});
|
});
|
||||||
uni.onSocketMessage((res)=>{
|
uni.onSocketMessage((res)=>{
|
||||||
|
console.log('WebSocket接收到消息:', res);
|
||||||
if (res.data==='start the camera'){
|
if (res.data==='start the camera'){
|
||||||
/* uni.closeSocket()*/
|
/* uni.closeSocket()*/
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@ -177,7 +178,7 @@ const exchange=async (item)=>{
|
|||||||
url: '/pages/index/index?acc=1'
|
url: '/pages/index/index?acc=1'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
console.log('WebSocket接收到消息:', res);
|
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user