diff --git a/src/views/function-config.vue b/src/views/function-config.vue index cbba5e9..1c8ab77 100644 --- a/src/views/function-config.vue +++ b/src/views/function-config.vue @@ -225,6 +225,7 @@ const onSubmit = () => { functionForm.value.validate(async () => { try { const param = cloneDeep({ ...data.value, deviceId: currentDeviceId.value }); + param.time = new Date(param.time).getTime(); if (param.report.type === 0) { // 按时间点上报 格式化时间格式 const points = [...param.report.timePoints];