fix: 直接保存互斥区的路线ID,移除不必要的过滤逻辑以简化代码

This commit is contained in:
xudan 2025-08-26 14:22:04 +08:00
parent 84b882c10e
commit 240f602f29

View File

@ -521,7 +521,8 @@ export class EditorService extends Meta2d {
}); });
} }
if (MapAreaType. === type) { if (MapAreaType. === type) {
area.routes = routes?.filter((v) => !isEmpty(this.getPenById(v)?.area)); // 互斥区直接保存路线ID不需要过滤
area.routes = routes;
} }
return area; return area;
} }