|
@@ -14,15 +14,15 @@
|
|
|
import FloorSwitch from '/@/components/basic/FloorSwitch.vue';
|
|
|
import GuidePanel from '/@/components/custom/panel.vue';
|
|
|
import browser from '/@/utils/browser';
|
|
|
- import { useRtcStore } from './store/modules/rtc';
|
|
|
+ // import { useRtcStore } from './store/modules/rtc';
|
|
|
import { useTourPlayer } from './hooks/userTourPlayer';
|
|
|
import { KankanMetaDataType } from '/#/sdk';
|
|
|
-
|
|
|
+ import Dialog from '/@/components/basic/dialog';
|
|
|
const { createTourPlayer } = useTourPlayer();
|
|
|
|
|
|
const sceneStore = useSceneStore();
|
|
|
const appStore = useAppStore();
|
|
|
- const rtcStore = useRtcStore();
|
|
|
+ // const rtcStore = useRtcStore();
|
|
|
const dataLoaded = ref(false);
|
|
|
const scene$ = ref<Nullable<HTMLElement>>(null);
|
|
|
const refMiniMap = ref<Nullable<string>>(null);
|
|
@@ -30,7 +30,7 @@
|
|
|
const player = computed(() => appStore.player);
|
|
|
const metadata = computed(() => sceneStore.metadata);
|
|
|
const mode = computed(() => appStore.mode);
|
|
|
- const isJoined = computed(() => rtcStore.isJoined);
|
|
|
+ // const isJoined = computed(() => rtcStore.isJoined);
|
|
|
const isLoaded = computed(() => appStore.isLoaded);
|
|
|
const controls = computed(() => {
|
|
|
return metadata.value.controls;
|
|
@@ -130,6 +130,22 @@
|
|
|
appStore.setFlying(false);
|
|
|
appStore.setFloorId(targetPano.id);
|
|
|
});
|
|
|
+ app.Scene.on('error', (data) => {
|
|
|
+ switch (data.code) {
|
|
|
+ case 5033:
|
|
|
+ Dialog.alert('该场景正在计算中,请稍后再试');
|
|
|
+ break;
|
|
|
+ case 5034:
|
|
|
+ Dialog.alert('服务端开小差,请稍后再试');
|
|
|
+ break;
|
|
|
+ case 5009:
|
|
|
+ Dialog.alert('服务端开小差,请稍后再试');
|
|
|
+ break;
|
|
|
+ case 5005:
|
|
|
+ Dialog.alert('服务端开小差,请稍后再试');
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
// SDK global Event end
|
|
|
|