mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 08:12:49 +08:00
fix: 处理序列化导致时间错误的问题
This commit is contained in:
parent
f54cad82ad
commit
c11ef13c04
@ -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
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user