fix: 优化细节

This commit is contained in:
bighuixiang
2025-07-24 21:37:21 +08:00
parent 46b1c5cd71
commit 3ff5e27db6
10 changed files with 335 additions and 102 deletions

View File

@@ -903,7 +903,10 @@ export class LayerManager {
* @returns {Object|null} 图层对象或null
*/
getLayerById(layerId) {
const { layer } = findLayerRecursively(this.layers.value, layerId);
const { layer } = findLayerRecursively(
this.layers?.value ?? this.layers,
layerId
);
return layer;
}