|
@@ -607,7 +607,7 @@ const getDevice = async () => {
|
|
|
*/
|
|
|
const initHand = () => {
|
|
|
handWs((e: any) => {
|
|
|
- if (router.currentRoute.value.path != '/train/multiple'){
|
|
|
+ if (router.currentRoute.value.path != '/train/multiple' || parameter.value.handcontroller == undefined){
|
|
|
return false;
|
|
|
}
|
|
|
console.log("eeeee", e)
|
|
@@ -626,21 +626,23 @@ const initHand = () => {
|
|
|
let handcontroller_id = device_info.value.handcontroller_id;
|
|
|
startHand(handcontroller_id);
|
|
|
}
|
|
|
+ //没初始化完成不监听手势动作
|
|
|
+ if(examState.value == 0){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
//左滑动
|
|
|
if (e?.data?.result == "next_item") {
|
|
|
}
|
|
|
//举左手
|
|
|
if (e?.data?.result == "left_hand") {
|
|
|
- console.log("qqqqqqqqqqqqqqqqqqqq")
|
|
|
+
|
|
|
//开始识别
|
|
|
if (needStart.value && examState.value < 41) {
|
|
|
- console.log("111111111111111111111")
|
|
|
getOpenOneTestAndStartFace();
|
|
|
return false;
|
|
|
}
|
|
|
//停止人脸识别
|
|
|
if (needStart.value && examState.value == 41) {
|
|
|
- console.log("222222222222222222222")
|
|
|
getStopFace();
|
|
|
return false;
|
|
|
}
|