From f3e92fa13107b569e0aa4d3ffff013fd2983660b Mon Sep 17 00:00:00 2001
From: sean.zhou <sean.zhou@dji.com>
Date: Tue, 25 Apr 2023 20:28:45 +0800
Subject: [PATCH] initial v1.4.0

---
 src/components/task/CreatePlan.vue |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/components/task/CreatePlan.vue b/src/components/task/CreatePlan.vue
index 37f0ae7..becc1be 100644
--- a/src/components/task/CreatePlan.vue
+++ b/src/components/task/CreatePlan.vue
@@ -182,7 +182,8 @@
     disabled.value = true
     const createPlanBody = { ...planBody } as unknown as CreatePlan
     if (planBody.select_execute_time) {
-      createPlanBody.execute_time = moment(planBody.select_execute_time).valueOf()
+      createPlanBody.task_days = [moment(planBody.select_execute_time).unix()]
+      createPlanBody.task_periods = [createPlanBody.task_days]
     }
     createPlanBody.rth_altitude = Number(createPlanBody.rth_altitude)
     if (wayline.value && wayline.value.template_types && wayline.value.template_types.length > 0) {

--
Gitblit v1.9.3