This commit is contained in:
koko 2024-12-02 09:32:17 +08:00
commit 5e13d284d3
2 changed files with 5 additions and 2 deletions

View File

@ -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);
});

View File

@ -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);
});