我在浏览器中加载场景 gltf 有问题

问题描述 投票:0回答:0

error bug chrome 当我尝试在我的 chrome 浏览器中加载 scene.gltf 时出现此错误我尝试了许多解决方案但我不知道该怎么做 我的代码我在公共场合有这个场景文件夹

import React, {Suspense, useEffect, useState } from "react";
import { Canvas } from "@react-three/fiber";

import { OrbitControls, Preload, useGLTF } from "@react-three/drei";

import CanvasLoader from "../Loader";

const Computers = ({ isMobile }) => {
  
  
  const computer = useGLTF("./desktop_computer/scene.gltf")
google-chrome three.js load project gltf
© www.soinside.com 2019 - 2024. All rights reserved.