|
@@ -22,10 +22,11 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { RightFillPano } from "@/layout";
|
|
|
-import { postAddPathInPosition } from '@/api'
|
|
|
+import { postAddPathInPosition, postInsertAnimationModelInPosition } from '@/api'
|
|
|
import mediaList from "./components/mediaList.vue";
|
|
|
import { nextTick, ref, onUnmounted } from "vue";
|
|
|
import { positionList, paths, initialPaths } from "@/store";
|
|
|
+import { initialAnimationModels } from "@/store/animation";
|
|
|
import { sdk } from "@/sdk";
|
|
|
|
|
|
const isRecord = ref(false);
|
|
@@ -84,9 +85,14 @@ const startRecord = (type: string) => {
|
|
|
positionPaths.forEach(async(positionPath: any) => {
|
|
|
await postAddPathInPosition(positionPath, startTime.value, endTime.value)
|
|
|
})
|
|
|
+
|
|
|
+ // 生成动画模型数据接口(等钟文返回动画数据am)
|
|
|
+ // await postInsertAnimationModelInPosition(am)
|
|
|
//获取一次列表
|
|
|
setTimeout(async () => {
|
|
|
await initialPaths()
|
|
|
+ // 刷新动画列表
|
|
|
+ // await initialAnimationModels()
|
|
|
}, 500)
|
|
|
// positionList.value.forEach((pos: any) => {
|
|
|
// // 寻找当前设备对应的path
|