|
@@ -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
|