bianjiang 1 년 전
부모
커밋
f11f01bae6
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      src/pages/frame3d/routes/frame3d/index.tsx

+ 6 - 1
src/pages/frame3d/routes/frame3d/index.tsx

@@ -87,6 +87,11 @@ const Canvas3d = defineComponent({
         if (item.background?.image?.url) {
           item.background.image.url = httpServer + item.background.image.url;
         }
+        item.config.textures.forEach((t: any) => {
+          t.images.forEach((im: any) => {
+            im.file = httpServer + im.file;
+          });
+        });
       });
 
       source.scenes.forEach((c: any) => {
@@ -97,7 +102,7 @@ const Canvas3d = defineComponent({
           c.background.image.url = httpServer + c.background.image.url;
         }
       });
-      console.log(httpServer,source);
+
       return source;
     };
     const initQueen = () => {