From 2a4b42ba0bbe3b5c659d02ed2bea69fa8f5355d7 Mon Sep 17 00:00:00 2001 From: wangqiujuan0808 <578331299@qq.com> Date: Thu, 14 Dec 2023 11:55:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E6=A8=A1=E5=9E=8B=E8=83=8C?= =?UTF-8?q?=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/store/modules/bim.js | 10 +++++++++- src/views/bim/bimHome/components/MenuTab.vue | 19 ++++++++++++++----- .../bim/bimHome/components/ThreeView2.vue | 10 +++++++++- src/views/bim/bimHome/index.vue | 4 ++-- 5 files changed, 35 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 8ab3351..56e2997 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "author": "若依", "license": "MIT", "scripts": { - "dev": "vite", + "dev": "vite --host=0.0.0.0", "build:prod": "vite build", "build:stage": "vite build --mode staging", "preview": "vite preview" diff --git a/src/store/modules/bim.js b/src/store/modules/bim.js index c36f36b..6c1fb87 100644 --- a/src/store/modules/bim.js +++ b/src/store/modules/bim.js @@ -6,13 +6,21 @@ const bimStore = defineStore( activateTree: {}, activateDevice: {}, activateApplication: {}, - deviceNum: '' + deviceNum: '', + activateMenu: { + name: '建筑信息', + background: '#202a60' + } }), actions: { // 菜单 setActivateIndex(index) { this.activateIndex = index; }, + + setActivateMenu(item) { + this.activateMenu = item; + }, // 建筑树选中 setActivateTree(item) { this.activateTree = item; diff --git a/src/views/bim/bimHome/components/MenuTab.vue b/src/views/bim/bimHome/components/MenuTab.vue index 7bb4285..94bf0c2 100644 --- a/src/views/bim/bimHome/components/MenuTab.vue +++ b/src/views/bim/bimHome/components/MenuTab.vue @@ -1,21 +1,25 @@ diff --git a/src/views/bim/bimHome/components/ThreeView2.vue b/src/views/bim/bimHome/components/ThreeView2.vue index 0bd78b6..2fa715b 100644 --- a/src/views/bim/bimHome/components/ThreeView2.vue +++ b/src/views/bim/bimHome/components/ThreeView2.vue @@ -16,7 +16,7 @@