Bläddra i källkod

Docs: Fixed import error (#27372)

林炳权 1 år sedan
förälder
incheckning
9807b24377
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      docs/examples/en/utils/SceneUtils.html
  2. 1 1
      docs/examples/zh/utils/SceneUtils.html

+ 1 - 1
docs/examples/en/utils/SceneUtils.html

@@ -21,7 +21,7 @@
 		</p>
 
 		<code>
-			import { SceneUtils } from 'three/addons/utils/SceneUtils.js';
+			import * as SceneUtils from 'three/addons/utils/SceneUtils.js';
 		</code>
 
 		<h2>Methods</h2>

+ 1 - 1
docs/examples/zh/utils/SceneUtils.html

@@ -19,7 +19,7 @@
 		</p>
 
 		<code>
-			import { SceneUtils } from 'three/addons/utils/SceneUtils.js';
+			import * as SceneUtils from 'three/addons/utils/SceneUtils.js';
 		</code>
 
 		<h2>方法</h2>