fix: 直接保存互斥区的路线ID,移除不必要的过滤逻辑以简化代码
This commit is contained in:
parent
84b882c10e
commit
240f602f29
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user