瀏覽代碼

代码优化

林旭祥 2 周之前
父節點
當前提交
0618506d71
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/gesture/index.vue

+ 1 - 1
src/views/gesture/index.vue

@@ -281,13 +281,13 @@ onBeforeMount(() => {
     }
     //接收设备信息
     if (e?.device_info) {
+      getInitExam();
       deviceInfo.value = e.device_info;
       let handcontroller_id = deviceInfo.value.handcontroller_id;
       //启用才执行命令
       if (deviceInfo.value.status) {
         stateHand(handcontroller_id);
       }
-      getInitExam();
     }
     //获取手势状态
     if (e?.cmd == 'get_handcontroller_state' && e?.state == 0) {