diff --git a/.env.development b/.env.development index fa3709b..70caef8 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,3 @@ -VITE_API_BASEURL = "https://192.168.0.206:8060" +VITE_API_BASEURL = "https://ibms-cvilux-api.production.mjmtech.com.tw" VITE_FILE_API_BASEURL = "https://cgems.cvilux-group.com:8088" VITE_FORGE_BASEURL = "http://localhost:5173" \ No newline at end of file diff --git a/.env.production b/.env.production index e933a00..a7e4527 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,3 @@ -VITE_API_BASEURL = "https://192.168.0.206:8060" -VITE_FILE_API_BASEURL = "https://cgems.cvilux-group.com:8088" +VITE_API_BASEURL = "https://ibms-cvilux-api.production.mjmtech.com.tw" +VITE_FILE_API_BASEURL = "https://ibms-cvilux.production.mjmtech.com.tw" VITE_FORGE_BASEURL = "http://202.39.218.221:8080/file/netzero" \ No newline at end of file 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 476f463..718a1aa 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(() => {