Browse Source

Docs: Fixed import error (#27372)

林炳权 1 year ago
parent
commit
9807b24377
2 changed files with 2 additions and 2 deletions
  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>