From 07e8e33114cf97a8f10b871d6e4c5d3addd28c7a Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 26 四月 2024 14:39:59 +0800
Subject: [PATCH] #

---
 src/components/box.jsx |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/components/box.jsx b/src/components/box.jsx
index 425e6d5..42ab356 100644
--- a/src/components/box.jsx
+++ b/src/components/box.jsx
@@ -4,10 +4,12 @@
 import * as THREE from 'three';
 import { MODEL_BOX_SCALE } from '@/config/setting'
 import * as Common from '../utils/common';
+import { useStore } from '@/store';
 
 const Box = (props) => {
     const { position = [0, 300, 0], rotationY = 0 } = props;
-
+    const state = useStore();
+    
     const boxModel = useMemo(() => {
         const fbx = useFBX('/models/box/box.fbx');
         if (!fbx.castShadow) {
@@ -18,8 +20,8 @@
     }, [])
 
     useEffect(() => {
-
-    }, []);
+        console.log(state.shelfList['1-1-1']);
+    }, [props]);
 
     return (
         <>

--
Gitblit v1.9.1