Browse Source

点击录制开始调方法

wangfumin 2 days ago
parent
commit
aa63509837
2 changed files with 2 additions and 1 deletions
  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;