tangning 8 月之前
父節點
當前提交
4c44f75f3f
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/views/topicNavigation/index.vue

+ 4 - 1
src/views/topicNavigation/index.vue

@@ -177,7 +177,8 @@ const handleAdd = () => {
     title: '新增路线',
     panos: []
   })
-
+  currentPanoEditing.value = 0
+  console.log('handleSelect', dataList.value, currentPanoEditing.value = 0)
   handleSelect("1",dataList.value.length-1)
 
   main.syncNavigation(dataList.value)
@@ -238,6 +239,7 @@ const handleListEdit = (index: number) => {
     sdk.Scene.whenLoaded(() => {
       sdk.PanoCheckManager.enter(dataList.value[index].panos)
       sdk.PanoCheckManager.echo((list: any) => {
+        console.log('echo', list)
         panos.value = list
       })
       clearScreen(true)
@@ -281,6 +283,7 @@ watch(
   [panos, isPanoEditing],
   () => {
     if (isPanoEditing.value && typeof currentPanoEditing.value === 'number') {
+      console.log('watch', currentPanoEditing.value, dataList.value, panos)
       const origin = dataList.value[currentPanoEditing.value]
       if (origin && panos.value.length > 0) {
         origin.panos = panos.value