Explorar o código

点击录制开始调方法

wangfumin hai 4 días
pai
achega
aa63509837
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 0
      src/sdk/sdk.ts
  2. 1 1
      src/views/positioning/index.vue

+ 1 - 0
src/sdk/sdk.ts

@@ -227,6 +227,7 @@ export interface SDK {
   goFloor: (num: number) => void;
   getFloorCount: () => number;
   generateAniPathData: () => any
+  startRecordPath: () => any
   setFollowDevice: (macId: any) => void
 }
 

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

@@ -59,7 +59,7 @@ const startRecord = (type: string) => {
         timer = setInterval(() => {
             recordingTime.value = Math.floor((Date.now() - startTime.value) / 1000);
         }, 1000);
-        let isSave = false;
+        sdk.startRecordPath()
     } else {
         // 停止录制
         isRecord.value = false;