浏览代码

Docs: Fixed import error (#27372)

林炳权 1 年之前
父节点
当前提交
9807b24377
共有 2 个文件被更改,包括 2 次插入2 次删除
  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>