|
@@ -19,9 +19,10 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { RightFillPano } from "@/layout";
|
|
|
+import { postAddPathInPosition } from '@/api'
|
|
|
import mediaList from "./components/mediaList.vue";
|
|
|
import { nextTick, reactive, ref, watchEffect, onUnmounted } from "vue";
|
|
|
-import { enterOld, enterEdit } from "@/store";
|
|
|
+import { positionList, enterOld, enterEdit } from "@/store";
|
|
|
import { loadPack } from '@/utils'
|
|
|
|
|
|
const isRecord = ref(false);
|
|
@@ -74,7 +75,10 @@ const startRecord = (type: string) => {
|
|
|
endTime: endTime.value,
|
|
|
duration: endTime.value - startTime.value
|
|
|
});
|
|
|
- // 这里调path接口传路线数据过去
|
|
|
+ // 这里调path接口传路线数据过去,有几个设备就生成几个path
|
|
|
+ positionList.value.forEach((pos: any) => {
|
|
|
+ postAddPathInPosition({}, startTime.value, endTime.value)
|
|
|
+ });
|
|
|
// enterOld(async () => {})
|
|
|
}
|
|
|
};
|