diff --git a/src/components/forge/ForgeForSystem.vue b/src/components/forge/ForgeForSystem.vue index 000e6f6..b39106a 100644 --- a/src/components/forge/ForgeForSystem.vue +++ b/src/components/forge/ForgeForSystem.vue @@ -33,7 +33,7 @@ const updateHeatBarIsShow = (isShow) => { heat_bar_isShow.value = isShow; }; -const { updateDataVisualization, createSprites, hideAllObjects } = useForgeSprite() +const { updateDataVisualization, createSprites, hideAllObjects, forgeClickListener } = useForgeSprite() const forgeDom = ref(null); @@ -162,9 +162,13 @@ const initForge = async () => { "Autodesk.Viewing.GEOMETRY_LOADED_EVENT", viewer.isLoadDone() ); - // updateForgeViewer(viewer); - // createSprites() - hideAllObjects(); + + if (viewer.isLoadDone()) { + // updateForgeViewer(viewer); + hideAllObjects(); + createSprites(); + forgeClickListener(); + } }) }; diff --git a/src/components/navbar/NavbarItem.vue b/src/components/navbar/NavbarItem.vue index 54f6a3a..22c93b0 100644 --- a/src/components/navbar/NavbarItem.vue +++ b/src/components/navbar/NavbarItem.vue @@ -18,9 +18,9 @@ const iniFroList = async () => { res.data.map((d) => AUTHPAGES.find(({ authCode }) => authCode === d.authCode) ? { - ...d, - ...AUTHPAGES.find(({ authCode }) => authCode === d.authCode), - } + ...d, + ...AUTHPAGES.find(({ authCode }) => authCode === d.authCode), + } : d ) ); @@ -71,85 +71,38 @@ onMounted(() => {