fix: 修复项目切换时运行时和系统重复初始化问题

This commit is contained in:
yhh
2025-12-04 10:10:31 +08:00
parent 566e1977fd
commit c744d8d9fc
4 changed files with 29 additions and 0 deletions

View File

@@ -1159,6 +1159,11 @@ export class PluginManager implements IService {
}
}
}
// 重置初始化状态,允许下次重新初始化运行时
// Reset initialized flag to allow re-initialization
this.initialized = false;
logger.debug('Scene systems cleared, runtime can be re-initialized');
}
/**