修复重复工作和发送点异常的情况
This commit is contained in:
@@ -70,8 +70,11 @@ class PathPlanningService {
|
||||
int get length => locationQueue.length;
|
||||
|
||||
/// 获取当前队列(供 Cubit 使用)
|
||||
Queue<DeviceAddPathPointModel> getQueue() {
|
||||
return Queue.of(locationQueue);
|
||||
}
|
||||
// Queue<DeviceAddPathPointModel> getQueue() {
|
||||
// return Queue.of(locationQueue);
|
||||
// }
|
||||
|
||||
Queue<DeviceAddPathPointModel> getQueue() {
|
||||
return locationQueue; // 直接返回引用
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user