This commit is contained in:
2025-08-27 17:57:33 +08:00
parent 886f1fd41d
commit 98495e2521
5 changed files with 36 additions and 14 deletions

View File

@@ -416,9 +416,6 @@ export default {
this.calculateCarSize()
},
// 核心修改:移除响应式调整逻辑,不再处理窗口大小变化
// handleResize() { ... },
startAnimationLoop() {
const animate = () => {
this.animationId = requestAnimationFrame(animate)
@@ -482,9 +479,6 @@ export default {
this.carTexture = null
}
// 移除窗口大小变化监听
window.removeEventListener('resize', this.handleResize)
this.camera = null
this.carMesh = null
this.pointCloudMesh = null