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 @@