bianjiang 1 year ago
parent
commit
f11f01bae6
1 changed files with 6 additions and 1 deletions
  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 = () => {