Skip to content

Commit 1a833a6

Browse files
committed
修复依赖错误
1 parent 36b31ac commit 1a833a6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/page/room.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,18 @@
77
wd='64px'></circleSlider>
88
<circleSlider :attr.sync="Camera.position.z" lw="4px" max="1000" min="500" rt="113"
99
wd='64px'></circleSlider>
10-
1110
</div>
1211

1312
</div>
1413
</template>
1514

1615
<script>
1716
import circleSlider from "@/components/circleSlider"
18-
import * as THREE from "three/build/three.module"
17+
import * as THREE from "three"
1918
// import OrbitControls from "three/examples/js/controls/OrbitControls"
2019
// import FlyControls from "three/examples/js/controls/FlyControls"
2120
// import DeviceOrientationControls from "three/examples/js/controls/DeviceOrientationControls"
22-
import FirstPersonControls from "three/examples/js/controls/FirstPersonControls"
21+
import {FirstPersonControls} from "three/examples/jsm/controls/FirstPersonControls"
2322
2423
import Stats from "stats.js";
2524

0 commit comments

Comments
 (0)