From 13425fbe65305941319379bf4d40e3900265d6f7 Mon Sep 17 00:00:00 2001 From: wally <18603454788@163.com> Date: Mon, 1 Nov 2021 08:16:58 +0800 Subject: [PATCH] feat: function config format ms --- src/views/function-config.vue | 1 + 1 file changed, 1 insertion(+) 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];