diff --git a/package.json b/package.json index 31961ef..d21e1b7 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "@vueup/vue-quill": "1.2.0", "@vueuse/core": "9.5.0", "axios": "0.27.2", + "dayjs": "^1.11.10", "echarts": "5.4.0", "element-plus": "2.2.27", "file-saver": "2.0.5", @@ -27,11 +28,11 @@ "jsencrypt": "3.3.1", "nprogress": "0.2.0", "pinia": "2.0.22", - "three": "^0.148.0", + "three": "^0.134.0", + "troisjs": "^0.3.4", "vue": "3.2.45", "vue-cropper": "1.0.3", - "vue-router": "4.1.4", - "dayjs": "^1.11.10" + "vue-router": "4.1.4" }, "devDependencies": { "@vitejs/plugin-vue": "3.1.0", diff --git a/src/main.js b/src/main.js index 5cf8846..1bae669 100644 --- a/src/main.js +++ b/src/main.js @@ -42,6 +42,9 @@ import ImagePreview from "@/components/ImagePreview" import TreeSelect from '@/components/TreeSelect' // 字典标签组件 import DictTag from '@/components/DictTag' +// troisjs +import { TroisJSVuePlugin } from 'troisjs'; + const app = createApp(App) @@ -65,6 +68,7 @@ app.component('ImagePreview', ImagePreview) app.component('RightToolbar', RightToolbar) app.component('Editor', Editor) +app.use(TroisJSVuePlugin) app.use(router) app.use(store) app.use(plugins) diff --git a/src/router/index.js b/src/router/index.js index 25c4ec5..43bef16 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -62,6 +62,7 @@ export const constantRoutes = [{ path: '', component: LayoutMain, redirect: '/index', + hidden: true, children: [{ path: '/index', component: () => import('@/views/index'), diff --git a/src/views/bim/bimHome/index.vue b/src/views/bim/bimHome/index.vue index 1d873fa..86a7cd0 100644 --- a/src/views/bim/bimHome/index.vue +++ b/src/views/bim/bimHome/index.vue @@ -1,90 +1,32 @@ \ No newline at end of file diff --git a/src/views/index.vue b/src/views/index.vue index b39f6b8..1f0d5cb 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -22,6 +22,8 @@ const sidebarRouters = computed(() => return !item.hidden; }) ); + +console.log(1,sidebarRouters); const gotoPage = (item) => { useTagsViewStore().delAllViews(); localStorage.setItem("CURRENT_MENU", item.path);