|
@@ -50,6 +50,8 @@ import { ref, reactive } from 'vue';
|
|
|
import { defHttpFun } from '/@/utils/http/axios';
|
|
import { defHttpFun } from '/@/utils/http/axios';
|
|
|
import { message } from 'ant-design-vue';
|
|
import { message } from 'ant-design-vue';
|
|
|
import { RightCircleOutlined, PlusCircleOutlined, CloseOutlined, CaretRightOutlined, PlusOutlined } from '@ant-design/icons-vue';
|
|
import { RightCircleOutlined, PlusCircleOutlined, CloseOutlined, CaretRightOutlined, PlusOutlined } from '@ant-design/icons-vue';
|
|
|
|
|
+import { getAppEnvConfig } from '/@/utils/env';
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
name: 'Popup', //漫游
|
|
name: 'Popup', //漫游
|
|
|
components: {
|
|
components: {
|
|
@@ -63,6 +65,7 @@ export default {
|
|
|
let dataList = reactive([]); //临时保存所有的数据
|
|
let dataList = reactive([]); //临时保存所有的数据
|
|
|
const formState = reactive({ viewName: '' });
|
|
const formState = reactive({ viewName: '' });
|
|
|
let viewNameDom = ref(null);
|
|
let viewNameDom = ref(null);
|
|
|
|
|
+ const { VITE_GLOB_UPDATE_TIME } = getAppEnvConfig();
|
|
|
let viewer = null;
|
|
let viewer = null;
|
|
|
let showPop = ref(false);
|
|
let showPop = ref(false);
|
|
|
let currentIndex = ref(-1);
|
|
let currentIndex = ref(-1);
|
|
@@ -216,7 +219,7 @@ export default {
|
|
|
tempData.splice(0, 1);
|
|
tempData.splice(0, 1);
|
|
|
currentIndex.value = currentIndex.value + 1;
|
|
currentIndex.value = currentIndex.value + 1;
|
|
|
fly(JSON.parse(tempData[0].flightParameter));
|
|
fly(JSON.parse(tempData[0].flightParameter));
|
|
|
- }, 5000); // 暂停五秒钟后播放下一个tempData
|
|
|
|
|
|
|
+ }, VITE_GLOB_UPDATE_TIME); // 暂停五秒钟后播放下一个tempData
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|