优化创建任务之后 需要重新获取无人机接口
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user