fix: 优化细节
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user