fix: 处理序列化导致时间错误的问题

This commit is contained in:
奔跑的面条 2023-01-17 14:45:13 +08:00
parent f54cad82ad
commit c11ef13c04

View File

@ -305,7 +305,7 @@ export const JSONStringify = <T>(data: T) => {
} }
// 处理 undefined 丢失问题 // 处理 undefined 丢失问题
if (typeof val === 'undefined') { if (typeof val === 'undefined') {
return 'undefined' return null
} }
return val return val
}, },