From 4769e77168cfa92625111a246450203cb05aa0d2 Mon Sep 17 00:00:00 2001 From: JouChun Date: Sat, 30 Nov 2024 23:06:09 -0500 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=A8=93=E5=B1=A43=EF=BC=A4?= =?UTF-8?q?=E8=A8=AD=E5=82=99=E9=A1=AF=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/forge/useForgeFloor.js | 5 ++++- src/hooks/forge/useForgeSprite.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/hooks/forge/useForgeFloor.js b/src/hooks/forge/useForgeFloor.js index 0545b28..aa2f196 100644 --- a/src/hooks/forge/useForgeFloor.js +++ b/src/hooks/forge/useForgeFloor.js @@ -1,6 +1,7 @@ import useSelectedFloor from "@/hooks/useSelectedFloor"; import { watch, ref, inject } from "vue"; import { useRoute } from "vue-router"; +import useSystemShowData from "@/hooks/useSystemShowData"; function useForgeFloor() { const route = useRoute(); @@ -59,9 +60,11 @@ function useForgeFloor() { forgeViewer.value.hide(parseInt(allDbIdsStr[i])); } }; + + const { flatSubData } = useSystemShowData(); const showDbIdFn = () => { hideDbIdFn(); - subscribeData.value.forEach((value, index) => { + flatSubData.value.forEach((value, index) => { forgeViewer.value.show(value.forge_dbid); }); diff --git a/src/hooks/forge/useForgeSprite.js b/src/hooks/forge/useForgeSprite.js index 24ad035..3e8ccca 100644 --- a/src/hooks/forge/useForgeSprite.js +++ b/src/hooks/forge/useForgeSprite.js @@ -182,7 +182,7 @@ export default function useForgeSprite() { const showSubSystemObjects = () => { hideAllObjects(); - subscribeData.value.forEach((value, index) => { + flatSubData.value.forEach((value, index) => { forgeViewer.value.show(value.forge_dbid); });