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

格式修改

parent 3f8292df
......@@ -4,7 +4,7 @@ export function HandelFormFieldsKeyValue(fields) {
let result = {}
for (const field in fields) {
const split = field.split('.');
if (split.length > 1) {
//为空的时候创建一个默认对象
if (result[split[0]] === undefined) {
......@@ -13,7 +13,7 @@ export function HandelFormFieldsKeyValue(fields) {
result[split[0]][split[1]] = momentFormatValue(fields[field]);
} else {
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 {
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