diff --git a/yanzhu-bigscreen/src/components/header.vue b/yanzhu-bigscreen/src/components/header.vue
index 5a86ceb7..d706eb14 100644
--- a/yanzhu-bigscreen/src/components/header.vue
+++ b/yanzhu-bigscreen/src/components/header.vue
@@ -79,14 +79,14 @@
@@ -45,7 +45,6 @@ import { listBimModel } from '@/api/bim/bimModel'
import ModelFloorTree from './ModelFloorTree.vue'
import PersonRoaming from './PersonRoaming.vue'
-import { h } from 'vue'
export default {
components: {
ModelFloorTree,
@@ -85,21 +84,27 @@ export default {
this.showModels = api.m_model.keys().toArray()
console.log('--change--')
},
+ resetScene() {
+ if (this.$refs.personRoaming) {
+ this.$refs.personRoaming.isRoaming = false
+ }
+ api.Camera.stopImmersiveRoam()
+ api.Model.location(api.m_model.keys().toArray()[0])
+ api.Plugin.deleteMiniMap()
+ },
doMenu(n) {
if (n == this.activeMenu) {
+ if (n == 0) {
+ this.resetScene()
+ }
return
}
this.activeMenu = n
if (n == 0) {
- api.Model.location(api.m_model.keys().toArray()[0])
+ this.resetScene()
}
if (n == 1) {
- this.NotificationPopup({
- title: '第一人称漫游',
- //id: 'PersonRoaming',
- //description: h('p', null, [h('span', null, 'Message can be '), h('i', { style: 'color: teal' }, 'VNode')]),
- //description: h('p', null, [h(PersonRoaming)]),
- })
+ this.param.title = '第一人称漫游'
}
},
NotificationPopup(parameter) {
diff --git a/yanzhu-ui-vue3/src/views/index.vue b/yanzhu-ui-vue3/src/views/index.vue
index ec9e25bf..b11b061e 100644
--- a/yanzhu-ui-vue3/src/views/index.vue
+++ b/yanzhu-ui-vue3/src/views/index.vue
@@ -11,7 +11,7 @@ function goTarget(url) {
window.open(url, '__blank')
}
request.get('/manage/api/menu/list').then((d) => {
- debugger
+ console.log('服务就绪')
})