From 620710b9a5f2e9ae2a2527f6ba6ade6063a630dc Mon Sep 17 00:00:00 2001 From: wangqiujuan0808 <578331299@qq.com> Date: Fri, 8 Dec 2023 22:33:10 +0800 Subject: [PATCH] 123 --- package.json | 3 ++- src/utils/bus.js | 2 ++ src/views/bim/bimHome/components/BuildTree.vue | 7 ++++++- src/views/bim/bimHome/components/ThreeView.vue | 4 ++++ 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 src/utils/bus.js diff --git a/package.json b/package.json index f722f29..59cfa21 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,8 @@ "troisjs": "^0.3.4", "vue": "3.2.45", "vue-cropper": "1.0.3", - "vue-router": "4.1.4" + "vue-router": "4.1.4", + "mitt": "^3.0.1" }, "devDependencies": { "@vitejs/plugin-vue": "3.1.0", diff --git a/src/utils/bus.js b/src/utils/bus.js new file mode 100644 index 0000000..1a13398 --- /dev/null +++ b/src/utils/bus.js @@ -0,0 +1,2 @@ +import mitt from 'mitt' +export default mitt() \ No newline at end of file diff --git a/src/views/bim/bimHome/components/BuildTree.vue b/src/views/bim/bimHome/components/BuildTree.vue index 2de141c..68290ec 100644 --- a/src/views/bim/bimHome/components/BuildTree.vue +++ b/src/views/bim/bimHome/components/BuildTree.vue @@ -12,6 +12,8 @@