Commit 075a9b83 authored by rainbowmorel@163.com's avatar rainbowmorel@163.com

格式修改

parent 3f8292df
...@@ -4,7 +4,7 @@ export function HandelFormFieldsKeyValue(fields) { ...@@ -4,7 +4,7 @@ export function HandelFormFieldsKeyValue(fields) {
let result = {} let result = {}
for (const field in fields) { for (const field in fields) {
const split = field.split('.'); const split = field.split('.');
if (split.length > 1) { if (split.length > 1) {
//为空的时候创建一个默认对象 //为空的时候创建一个默认对象
if (result[split[0]] === undefined) { if (result[split[0]] === undefined) {
...@@ -13,7 +13,7 @@ export function HandelFormFieldsKeyValue(fields) { ...@@ -13,7 +13,7 @@ export function HandelFormFieldsKeyValue(fields) {
result[split[0]][split[1]] = momentFormatValue(fields[field]); result[split[0]][split[1]] = momentFormatValue(fields[field]);
} else { } else {
if (['deliveryRangeTime'].includes(field)) { if (['deliveryRangeTime'].includes(field)) {
result[field] = fields[field].map(v => momentFormatValue(v, 'HH:mm:ss')) result[field] = fields[field].map(v => momentFormatValue(v, 'HH:mm'))
} else { } else {
result[field] = momentFormatValue(fields[field]); result[field] = momentFormatValue(fields[field]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment