优化创建任务之后 需要重新获取无人机接口

This commit is contained in:
mmc
2026-05-27 15:26:29 +08:00
parent 2ab9e3715a
commit 834f93b947
4 changed files with 14 additions and 13 deletions

View File

@@ -27,7 +27,7 @@ import CesiumMap from '../Map';
const { Text, Title } = Typography;
const { RangePicker } = DatePicker;
export default function WayLinePage({ planedevices }) {
export default function WayLinePage({ planedevices, onRefresh }) {
const fontSmall = 'clamp(10px, 0.7vw, 11px)';
const fontNormal = 'clamp(12px, 0.75vw, 13px)';
const fontTitle = 'clamp(14px, 0.85vw, 16px)';
@@ -180,7 +180,7 @@ export default function WayLinePage({ planedevices }) {
utils.message.success('创建任务成功');
resetModals();
getListTask();
if (onRefresh) onRefresh();
} else {
utils.message.error(res.msg || '创建失败');
}
@@ -442,6 +442,7 @@ export default function WayLinePage({ planedevices }) {
utils.message.success('航线执行任务创建成功');
setRthModalVisible(false);
getListTask();
if (onRefresh) onRefresh();
//await getTrackFn({
// uuid: res.data.task_uuid